@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class ChuteTileEntity extends SmartTileEntity implements IHaveGoggleInformation
IHaveGoggleInformation.FormatcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
ChuteTileEntity(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
boolean |
addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
this method will be called when looking at a TileEntity that implemented this
interface
|
void |
blockBelowChanged() |
protected float |
calculatePull() |
protected float |
calculatePush(int branchCount) |
protected boolean |
canAcceptItem(net.minecraft.item.ItemStack stack) |
protected boolean |
canCollectItemsFromBelow() |
boolean |
canDirectlyInsertCached() |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
protected int |
getExtractionAmount() |
protected ItemHelper.ExtractionCountMode |
getExtractionMode() |
net.minecraft.item.ItemStack |
getItem() |
float |
getItemMotion() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
void |
initialize() |
void |
onAdded() |
void |
onRemoved(net.minecraft.block.BlockState chuteState) |
void |
propagatePush() |
void |
setItem(net.minecraft.item.ItemStack stack) |
void |
setItem(net.minecraft.item.ItemStack stack,
float insertionPos) |
void |
setRemoved() |
void |
tick() |
void |
updatePull() |
void |
updatePush(int branchCount) |
void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, setLazyTickRate, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainedFluidTooltip, formatpublic ChuteTileEntity(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn)
public void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class SmartTileEntitypublic boolean canDirectlyInsertCached()
public void initialize()
initialize in class SmartTileEntitypublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class SmartTileEntitypublic void blockBelowChanged()
protected boolean canAcceptItem(net.minecraft.item.ItemStack stack)
protected int getExtractionAmount()
protected ItemHelper.ExtractionCountMode getExtractionMode()
protected boolean canCollectItemsFromBelow()
public void setItem(net.minecraft.item.ItemStack stack)
public void setItem(net.minecraft.item.ItemStack stack,
float insertionPos)
public void setRemoved()
setRemoved in class SmartTileEntitypublic void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class SmartTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class SmartTileEntitypublic float getItemMotion()
public void onRemoved(net.minecraft.block.BlockState chuteState)
public void onAdded()
public void updatePull()
public void updatePush(int branchCount)
public void propagatePush()
protected float calculatePull()
protected float calculatePush(int branchCount)
public boolean addToGoggleTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
boolean isPlayerSneaking)
IHaveGoggleInformationaddToGoggleTooltip in interface IHaveGoggleInformationtrue if the tooltip creation was successful and should be displayed,
or false if the overlay should not be displayedpublic <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.tileentity.TileEntity>public net.minecraft.item.ItemStack getItem()