public class BeaconTileEntity extends TileEntity implements INamedContainerProvider, ITickableTileEntity
Modifier and Type | Class and Description |
---|---|
static class |
BeaconTileEntity.BeamSegment |
Modifier and Type | Field and Description |
---|---|
static Effect[][] |
BEACON_EFFECTS |
private java.util.List<BeaconTileEntity.BeamSegment> |
beamSections |
private java.util.List<BeaconTileEntity.BeamSegment> |
checkingBeamSections |
private IIntArray |
dataAccess |
private int |
lastCheckY |
private int |
levels |
private LockCode |
lockKey |
private ITextComponent |
name |
private Effect |
primaryPower |
private Effect |
secondaryPower |
private static java.util.Set<Effect> |
VALID_EFFECTS |
level, remove, worldPosition
INFINITE_EXTENT_AABB
Constructor and Description |
---|
BeaconTileEntity() |
Modifier and Type | Method and Description |
---|---|
private void |
applyEffects() |
Container |
createMenu(int p_createMenu_1_,
PlayerInventory p_createMenu_2_,
PlayerEntity p_createMenu_3_) |
java.util.List<BeaconTileEntity.BeamSegment> |
getBeamSections() |
ITextComponent |
getDisplayName() |
int |
getLevels() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
private static Effect |
getValidEffectById(int p_184279_0_) |
double |
getViewDistance() |
void |
load(BlockState p_230337_1_,
CompoundNBT p_230337_2_) |
void |
playSound(SoundEvent p_205736_1_) |
CompoundNBT |
save(CompoundNBT p_189515_1_) |
void |
setCustomName(ITextComponent p_200227_1_) |
void |
setRemoved() |
void |
tick() |
private void |
updateBase(int p_213927_1_,
int p_213927_2_,
int p_213927_3_) |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
public static final Effect[][] BEACON_EFFECTS
private static final java.util.Set<Effect> VALID_EFFECTS
private java.util.List<BeaconTileEntity.BeamSegment> beamSections
private java.util.List<BeaconTileEntity.BeamSegment> checkingBeamSections
private int levels
private int lastCheckY
@Nullable private Effect primaryPower
@Nullable private Effect secondaryPower
@Nullable private ITextComponent name
private LockCode lockKey
private final IIntArray dataAccess
public void tick()
tick
in interface ITickableTileEntity
private void updateBase(int p_213927_1_, int p_213927_2_, int p_213927_3_)
public void setRemoved()
setRemoved
in class TileEntity
private void applyEffects()
public void playSound(SoundEvent p_205736_1_)
public java.util.List<BeaconTileEntity.BeamSegment> getBeamSections()
public int getLevels()
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public double getViewDistance()
getViewDistance
in class TileEntity
@Nullable private static Effect getValidEffectById(int p_184279_0_)
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
load
in class TileEntity
public CompoundNBT save(CompoundNBT p_189515_1_)
save
in class TileEntity
public void setCustomName(@Nullable ITextComponent p_200227_1_)
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
createMenu
in interface IContainerProvider
public ITextComponent getDisplayName()
getDisplayName
in interface INamedContainerProvider