public class MysteryBoxTileEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.tileentity.ITickableTileEntity
Constructor and Description |
---|
MysteryBoxTileEntity() |
Modifier and Type | Method and Description |
---|---|
void |
activate(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack item) |
boolean |
canOpen() |
boolean |
feedScrap(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack item) |
float[] |
getOpenness() |
int |
getPower() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
boolean |
isOnCooldown() |
boolean |
isOpen() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT nbt) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt) |
void |
prepareForDrop() |
void |
removeCooldown() |
void |
resetValues() |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT nbt) |
void |
setChanged() |
void |
tick() |
boolean |
tryOpen(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack item) |
protected void |
updateSignal() |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void resetValues()
public boolean isOpen()
public boolean canOpen()
public boolean isOnCooldown()
public void removeCooldown()
public boolean tryOpen(net.minecraft.entity.player.PlayerEntity player, net.minecraft.block.BlockState state, net.minecraft.item.ItemStack item)
public boolean feedScrap(net.minecraft.entity.player.PlayerEntity player, net.minecraft.block.BlockState state, net.minecraft.item.ItemStack item)
public int getPower()
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT nbt)
save
in class net.minecraft.tileentity.TileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT nbt)
load
in class net.minecraft.tileentity.TileEntity
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
public float[] getOpenness()
public void activate(net.minecraft.entity.player.PlayerEntity player, net.minecraft.block.BlockState state, net.minecraft.item.ItemStack item)
public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public void setChanged()
setChanged
in class net.minecraft.tileentity.TileEntity
public void prepareForDrop()
protected void updateSignal()