Tiered tank and storage blocks, GUI improvements, refactoring, cell nerf and misc organisation (#1932)
Tanks, storage blocks and variouse stuff. Thanks to Dimmerworld!!
This commit is contained in:
parent
2fc9557516
commit
9328c47bed
207 changed files with 1830 additions and 928 deletions
|
@ -69,7 +69,7 @@ import javax.annotation.Nullable;
|
|||
public class ItemDynamicCell extends Item implements ItemFluidInfo {
|
||||
|
||||
public ItemDynamicCell() {
|
||||
super(new Item.Settings().group(TechReborn.ITEMGROUP));
|
||||
super( new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(16));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -95,6 +95,8 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo {
|
|||
return super.getName(itemStack);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static ItemStack getCellWithFluid(Fluid fluid, int stackSize) {
|
||||
Validate.notNull(fluid);
|
||||
ItemStack stack = new ItemStack(TRContent.CELL);
|
||||
|
@ -182,7 +184,7 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo {
|
|||
}
|
||||
}
|
||||
|
||||
//Thanks vanilla :)
|
||||
// Thanks vanilla :)
|
||||
private void playEmptyingSound(@Nullable PlayerEntity playerEntity, IWorld world, BlockPos blockPos, Fluid fluid) {
|
||||
SoundEvent soundEvent = fluid.matches(FluidTags.LAVA) ? SoundEvents.ITEM_BUCKET_EMPTY_LAVA : SoundEvents.ITEM_BUCKET_EMPTY;
|
||||
world.playSound(playerEntity, blockPos, soundEvent, SoundCategory.BLOCKS, 1.0F, 1.0F);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue