Class MountedStorageManager
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.MountedStorageManager
- Direct Known Subclasses:
TrainCargoManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CombinedTankWrapperprotected Map<net.minecraft.core.BlockPos,MountedFluidStorage> protected Contraption.ContraptionInvWrapperprotected Contraption.ContraptionInvWrapperprotected Map<net.minecraft.core.BlockPos,MountedStorage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.block.entity.BlockEntity te) voidaddStorageToWorld(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo block, net.minecraft.world.level.block.entity.BlockEntity tileEntity) voidattachExternal(net.minecraftforge.items.IItemHandlerModifiable externalStorage) voidbindTanks(Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities) voidclear()voidvoidentityTick(AbstractContraptionEntity entity) net.minecraftforge.fluids.capability.IFluidHandlernet.minecraftforge.items.IItemHandlerModifiablenet.minecraftforge.items.IItemHandlerModifiablegetItems()voidread(net.minecraft.nbt.CompoundTag nbt, Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities, boolean clientPacket) voidvoidupdateContainedFluid(net.minecraft.core.BlockPos localPos, net.minecraftforge.fluids.FluidStack containedFluid) protected CombinedTankWrapperwrapFluids(Collection<net.minecraftforge.fluids.capability.IFluidHandler> list) protected Contraption.ContraptionInvWrapperwrapItems(Collection<net.minecraftforge.items.IItemHandlerModifiable> list, boolean fuel) voidwrite(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket)
-
Field Details
-
inventory
-
fuelInventory
-
fluidInventory
-
storage
-
fluidStorage
-
-
Constructor Details
-
MountedStorageManager
public MountedStorageManager()
-
-
Method Details
-
entityTick
-
createHandlers
public void createHandlers() -
wrapItems
protected Contraption.ContraptionInvWrapper wrapItems(Collection<net.minecraftforge.items.IItemHandlerModifiable> list, boolean fuel) -
wrapFluids
protected CombinedTankWrapper wrapFluids(Collection<net.minecraftforge.fluids.capability.IFluidHandler> list) -
addBlock
public void addBlock(net.minecraft.core.BlockPos localPos, net.minecraft.world.level.block.entity.BlockEntity te) -
read
public void read(net.minecraft.nbt.CompoundTag nbt, Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities, boolean clientPacket) -
bindTanks
public void bindTanks(Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities) -
write
public void write(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) -
removeStorageFromWorld
public void removeStorageFromWorld() -
addStorageToWorld
public void addStorageToWorld(net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo block, net.minecraft.world.level.block.entity.BlockEntity tileEntity) -
clear
public void clear() -
updateContainedFluid
public void updateContainedFluid(net.minecraft.core.BlockPos localPos, net.minecraftforge.fluids.FluidStack containedFluid) -
attachExternal
public void attachExternal(net.minecraftforge.items.IItemHandlerModifiable externalStorage) -
getItems
public net.minecraftforge.items.IItemHandlerModifiable getItems() -
getFuelItems
public net.minecraftforge.items.IItemHandlerModifiable getFuelItems() -
getFluids
public net.minecraftforge.fluids.capability.IFluidHandler getFluids()
-