public abstract class TileEntityAbstractHopper<T extends net.minecraft.tileentity.TileEntity & IRedstoneControl<T>> extends TileEntityTickableBase implements IRedstoneControl<T>, IComparatorSupport, net.minecraft.inventory.container.INamedContainerProvider
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
boolean |
isCreative |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesLeaveMaterial() |
protected abstract boolean |
doExport(int maxItems) |
protected abstract boolean |
doImport(int maxItems) |
int |
getComparatorValue() |
protected abstract int |
getComparatorValueInternal() |
net.minecraft.util.Direction |
getInputDirection() |
int |
getItemTransferInterval() |
int |
getMaxItems() |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
onBlockRotated() |
protected void |
onFirstServerTick() |
void |
onUpgradesChanged()
Called when a machine's upgrades have changed in any way.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
protected abstract void |
setupInputOutputRegions() |
boolean |
shouldPreserveStateOnBreak()
Should this tile entity preserve its state (currently: upgrades and stored air) when broken?
By default this is true when sneak-wrenched, and false when broken by pick.
|
protected boolean |
shouldRerenderChunkOnDescUpdate() |
void |
tick() |
addLuaMethods, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getPrimaryInventory, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleUpdateTag, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, onNeighborBlockUpdate, onNeighborTileUpdate, readFromPacket, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldSyncField, updateNeighbours, writeToPacketclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentRedstonePower, getRedstoneController, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedgetDisplayNamepublic net.minecraft.util.Direction getInputDirection()
protected void onFirstServerTick()
onFirstServerTick in class TileEntityBasepublic void onBlockRotated()
onBlockRotated in class TileEntityBasepublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityTickableBaseprotected boolean shouldRerenderChunkOnDescUpdate()
shouldRerenderChunkOnDescUpdate in class TileEntityBasepublic int getMaxItems()
public int getItemTransferInterval()
protected abstract void setupInputOutputRegions()
protected abstract boolean doExport(int maxItems)
protected abstract boolean doImport(int maxItems)
protected abstract int getComparatorValueInternal()
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityBasepublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic boolean doesLeaveMaterial()
public int getComparatorValue()
getComparatorValue in interface IComparatorSupportpublic void onUpgradesChanged()
TileEntityBaseonUpgradesChanged in interface IUpgradeHolderonUpgradesChanged in class TileEntityBasepublic boolean shouldPreserveStateOnBreak()
TileEntityBaseshouldPreserveStateOnBreak in class TileEntityBase