Class TrainCargoManager
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.MountedStorageManager
com.simibubi.create.content.contraptions.components.structureMovement.train.TrainCargoManager
-
Field Summary
Fields inherited from class com.simibubi.create.content.contraptions.components.structureMovement.MountedStorageManager
fluidInventory, fluidStorage, fuelInventory, inventory, storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintvoidread(net.minecraft.nbt.CompoundTag nbt, Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities, boolean clientPacket) voidvoidprotected 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) Methods inherited from class com.simibubi.create.content.contraptions.components.structureMovement.MountedStorageManager
addBlock, addStorageToWorld, attachExternal, bindTanks, clear, entityTick, getFluids, getFuelItems, getItems, removeStorageFromWorld, updateContainedFluid
-
Constructor Details
-
TrainCargoManager
public TrainCargoManager()
-
-
Method Details
-
createHandlers
public void createHandlers()- Overrides:
createHandlersin classMountedStorageManager
-
wrapItems
protected Contraption.ContraptionInvWrapper wrapItems(Collection<net.minecraftforge.items.IItemHandlerModifiable> list, boolean fuel) - Overrides:
wrapItemsin classMountedStorageManager
-
wrapFluids
protected CombinedTankWrapper wrapFluids(Collection<net.minecraftforge.fluids.capability.IFluidHandler> list) - Overrides:
wrapFluidsin classMountedStorageManager
-
write
public void write(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) - Overrides:
writein classMountedStorageManager
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.entity.BlockEntity> presentTileEntities, boolean clientPacket) - Overrides:
readin classMountedStorageManager
-
resetIdleCargoTracker
public void resetIdleCargoTracker() -
tickIdleCargoTracker
public void tickIdleCargoTracker() -
getTicksSinceLastExchange
public int getTicksSinceLastExchange() -
getVersion
public int getVersion()
-