Class PneumaticTubeBlockEntity.Output
java.lang.Object
com.petrolpark.petrolsparts.content.logistics.pneumaticTube.PneumaticTubeBlockEntity.Output
- Enclosing class:
PneumaticTubeBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected WeakReference<net.minecraft.world.entity.Entity> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetInput()protected com.petrolpark.core.item.QueueItemHandlernet.minecraft.core.Directionnet.minecraft.world.phys.Vec3booleanprotected net.minecraft.world.item.ItemStackoutput(net.minecraft.world.item.ItemStack stack, boolean simulate) Attempt to insert the Item Stack into the space in front of this output.protected voidoutputOrBacklog(net.minecraft.world.item.ItemStack stack) Attempt to insert the Item Stack into the space in front of this output.voidtick()
-
Field Details
-
blocked
-
lastBlockingEntityRef
-
-
Constructor Details
-
Output
public Output()
-
-
Method Details
-
enclosing
-
getInput
-
getOutputFace
public net.minecraft.core.Direction getOutputFace() -
getOutputLocation
public net.minecraft.world.phys.Vec3 getOutputLocation() -
forgetBlocked
public void forgetBlocked() -
isBlocked
public boolean isBlocked() -
tick
public void tick() -
output
protected net.minecraft.world.item.ItemStack output(net.minecraft.world.item.ItemStack stack, boolean simulate) Attempt to insert the Item Stack into the space in front of this output.- Parameters:
stack-simulate- Whether to not actually store/shoot out the Item, but just try- Returns:
- The remaining Items after the Insertion is/would be complete
- See Also:
-
outputOrBacklog
protected void outputOrBacklog(net.minecraft.world.item.ItemStack stack) Attempt to insert the Item Stack into the space in front of this output. If the Stack cannot be outputted and this is not simulated, stores the Stack in thebacklog.- Parameters:
stack-
-
getItemBacklog
protected com.petrolpark.core.item.QueueItemHandler getItemBacklog()
-