public class BeaconTileEntity extends TileEntity implements INamedContainerProvider, ITickableTileEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
BeaconTileEntity.BeamSegment |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<BeaconTileEntity.BeamSegment> |
beamSegments |
private ITextComponent |
customName |
static Effect[][] |
EFFECTS_LIST |
private java.util.List<BeaconTileEntity.BeamSegment> |
field_213934_g |
private int |
field_213935_i |
private IIntArray |
field_213937_n |
private int |
levels |
private LockCode |
lockCode |
private Effect |
primaryEffect |
private Effect |
secondaryEffect |
private static java.util.Set<Effect> |
VALID_EFFECTS |
pos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
BeaconTileEntity() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addEffectsToPlayers() |
private void |
checkBeaconLevel(int beaconXIn,
int beaconYIn,
int beaconZIn) |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
java.util.List<BeaconTileEntity.BeamSegment> |
getBeamSegments() |
ITextComponent |
getDisplayName() |
int |
getLevels() |
double |
getMaxRenderDistanceSquared() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
private static Effect |
isBeaconEffect(int p_184279_0_) |
void |
playSound(SoundEvent p_205736_1_) |
void |
read(CompoundNBT compound) |
void |
remove() |
void |
setCustomName(ITextComponent aname) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilitypublic static final Effect[][] EFFECTS_LIST
private static final java.util.Set<Effect> VALID_EFFECTS
private java.util.List<BeaconTileEntity.BeamSegment> beamSegments
private java.util.List<BeaconTileEntity.BeamSegment> field_213934_g
private int levels
private int field_213935_i
@Nullable private Effect primaryEffect
@Nullable private Effect secondaryEffect
@Nullable private ITextComponent customName
private LockCode lockCode
private final IIntArray field_213937_n
public void tick()
tick in interface ITickableTileEntityprivate void checkBeaconLevel(int beaconXIn,
int beaconYIn,
int beaconZIn)
public void remove()
remove in class TileEntityprivate void addEffectsToPlayers()
public void playSound(SoundEvent p_205736_1_)
public java.util.List<BeaconTileEntity.BeamSegment> getBeamSegments()
public int getLevels()
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket in class TileEntitypublic CompoundNBT getUpdateTag()
getUpdateTag in class TileEntitypublic double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class TileEntity@Nullable private static Effect isBeaconEffect(int p_184279_0_)
public void read(CompoundNBT compound)
read in class TileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class TileEntitypublic void setCustomName(@Nullable
ITextComponent aname)
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu in interface IContainerProviderpublic ITextComponent getDisplayName()
getDisplayName in interface INamedContainerProvider