public class TileEntityBeacon extends TileEntityLockable implements ISidedInventory, ITickable
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntityBeacon.BeamSegment |
| Modifier and Type | Field and Description |
|---|---|
static Potion[][] |
EFFECTS_LIST |
pos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
TileEntityBeacon() |
createUnSidedHandler, getCapability, getLockCode, isLocked, remove, setLockCodeaddInfoToCrashReport, create, getBlockState, getDistanceSq, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorld, updateContainingBlockInfo, validateareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getWidth, markDirtygetDisplayNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPassgetCapabilitypublic static final Potion[][] EFFECTS_LIST
public void updateBeacon()
public void playSound(SoundEvent p_205736_1_)
public java.util.List<TileEntityBeacon.BeamSegment> getBeamSegments()
public float shouldBeamRender()
public int getLevels()
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class TileEntitypublic NBTTagCompound getUpdateTag()
getUpdateTag in class TileEntitypublic double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class TileEntitypublic void read(NBTTagCompound compound)
read in class TileEntityLockablepublic NBTTagCompound write(NBTTagCompound compound)
write in class TileEntityLockablepublic int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorypublic ITextComponent getName()
public boolean hasCustomName()
hasCustomName in interface INameable@Nullable public ITextComponent getCustomName()
getCustomName in interface INameablepublic void setCustomName(@Nullable
ITextComponent aname)
public int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean isUsableByPlayer(EntityPlayer player)
isUsableByPlayer in interface IInventorypublic void openInventory(EntityPlayer player)
openInventory in interface IInventorypublic void closeInventory(EntityPlayer player)
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic java.lang.String getGuiID()
getGuiID in interface IInteractionObjectpublic Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer in interface IInteractionObjectpublic int getField(int id)
getField in interface IInventorypublic void setField(int id,
int value)
setField in interface IInventorypublic int getFieldCount()
getFieldCount in interface IInventorypublic void clear()
clear in interface IInventorypublic boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class TileEntitypublic int[] getSlotsForFace(EnumFacing side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
EnumFacing direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
EnumFacing direction)
canExtractItem in interface ISidedInventory