Class BeaconBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BeaconBlockEntity
- All Implemented Interfaces:
- MenuConstructor,- MenuProvider,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MobEffect[][](package private) List<BeaconBlockEntity.BeaconBeamSection>private static final intprivate List<BeaconBlockEntity.BeaconBeamSection>static final intstatic final intstatic final intprivate final ContainerDataprivate static final Componentprivate int(package private) intprivate LockCodeprivate static final intprivate Componentstatic final int(package private) MobEffect(package private) MobEffectprivate static final Stringprivate static final StringFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidapplyEffects(Level p_155098_, BlockPos p_155099_, int p_155100_, MobEffect p_155101_, MobEffect p_155102_) createMenu(int p_58696_, Inventory p_58697_, Player p_58698_) (package private) static MobEffectfilterEffect(MobEffect p_300420_) getName()voidload(CompoundTag p_155113_) private static MobEffectloadEffect(CompoundTag p_298536_, String p_301201_) static voidplaySound(Level p_155104_, BlockPos p_155105_, SoundEvent p_155106_) protected voidsaveAdditional(CompoundTag p_187463_) voidsetCustomName(Component p_58682_) voidvoidprivate static voidstoreEffect(CompoundTag p_299457_, String p_297212_, MobEffect p_297266_) static voidtick(Level p_155108_, BlockPos p_155109_, BlockState p_155110_, BeaconBlockEntity p_155111_) private static intupdateBase(Level p_155093_, int p_155094_, int p_155095_, int p_155096_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.minecraft.world.NameablehasCustomName
- 
Field Details- 
MAX_LEVELSprivate static final int MAX_LEVELS- See Also:
 
- 
BEACON_EFFECTS
- 
VALID_EFFECTS
- 
DATA_LEVELSpublic static final int DATA_LEVELS- See Also:
 
- 
DATA_PRIMARYpublic static final int DATA_PRIMARY- See Also:
 
- 
DATA_SECONDARYpublic static final int DATA_SECONDARY- See Also:
 
- 
NUM_DATA_VALUESpublic static final int NUM_DATA_VALUES- See Also:
 
- 
BLOCKS_CHECK_PER_TICKprivate static final int BLOCKS_CHECK_PER_TICK- See Also:
 
- 
DEFAULT_NAME
- 
TAG_PRIMARY- See Also:
 
- 
TAG_SECONDARY- See Also:
 
- 
beamSectionsList<BeaconBlockEntity.BeaconBeamSection> beamSections
- 
checkingBeamSections
- 
levelsint levels
- 
lastCheckYprivate int lastCheckY
- 
- 
secondaryPower
- 
name
- 
lockKey
- 
dataAccess
 
- 
- 
Constructor Details- 
BeaconBlockEntity
 
- 
- 
Method Details- 
filterEffect
- 
tickpublic static void tick(Level p_155108_, BlockPos p_155109_, BlockState p_155110_, BeaconBlockEntity p_155111_) 
- 
updateBase
- 
setRemovedpublic void setRemoved()- Overrides:
- setRemovedin class- BlockEntity
 
- 
applyEffects
- 
playSound
- 
getBeamSections
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
storeEffectprivate static void storeEffect(CompoundTag p_299457_, String p_297212_, @Nullable MobEffect p_297266_) 
- 
loadEffect
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
setCustomName
- 
getCustomName- Specified by:
- getCustomNamein interface- Nameable
 
- 
createMenu@Nullable public AbstractContainerMenu createMenu(int p_58696_, Inventory p_58697_, Player p_58698_) - Specified by:
- createMenuin interface- MenuConstructor
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- MenuProvider
- Specified by:
- getDisplayNamein interface- Nameable
 
- 
getName
- 
setLevel- Overrides:
- setLevelin class- BlockEntity
 
 
-