Package net.minecraft.tileentity
Class BeaconTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
net.minecraft.tileentity.BeaconTileEntity
- All Implemented Interfaces:
IContainerProvider
,INamedContainerProvider
,ITickableTileEntity
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class BeaconTileEntity
extends TileEntity
implements INamedContainerProvider, ITickableTileEntity
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Effect[][]
private List<BeaconTileEntity.BeamSegment>
private List<BeaconTileEntity.BeamSegment>
private final IIntArray
private int
private int
private LockCode
private ITextComponent
private Effect
private Effect
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) int
private static Effect
getValidEffectById
(int p_184279_0_) double
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) void
playSound
(SoundEvent p_205736_1_) save
(CompoundNBT p_189515_1_) void
setCustomName
(ITextComponent p_200227_1_) void
void
tick()
private void
updateBase
(int p_213927_1_, int p_213927_2_, int p_213927_3_) Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
BEACON_EFFECTS
-
VALID_EFFECTS
-
beamSections
-
checkingBeamSections
-
levels
private int levels -
lastCheckY
private int lastCheckY -
-
secondaryPower
-
name
-
lockKey
-
dataAccess
-
-
Constructor Details
-
BeaconTileEntity
public BeaconTileEntity()
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceITickableTileEntity
-
updateBase
private void updateBase(int p_213927_1_, int p_213927_2_, int p_213927_3_) -
setRemoved
public void setRemoved()- Overrides:
setRemoved
in classTileEntity
-
applyEffects
private void applyEffects() -
playSound
-
getBeamSections
-
getLevels
public int getLevels() -
getUpdatePacket
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classTileEntity
-
getViewDistance
public double getViewDistance()- Overrides:
getViewDistance
in classTileEntity
-
getValidEffectById
-
load
- Overrides:
load
in classTileEntity
-
save
- Overrides:
save
in classTileEntity
-
setCustomName
-
createMenu
@Nullable public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) - Specified by:
createMenu
in interfaceIContainerProvider
-
getDisplayName
- Specified by:
getDisplayName
in interfaceINamedContainerProvider
-