Class BeaconBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BeaconBlockEntity
- All Implemented Interfaces:
MenuConstructor,MenuProvider,Nameable,IAttachmentHolder,IMenuProviderExtension,IBlockEntityExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescription(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 intprivate static final Stringprivate static final StringFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidapplyEffects(Level p_155098_, BlockPos p_155099_, int p_155100_, Holder<MobEffect> p_316599_, Holder<MobEffect> p_316343_) protected voidprotected voidcreateMenu(int p_58696_, Inventory p_58697_, Player p_58698_) filterEffect(Holder<MobEffect> p_316372_) getName()getUpdateTag(HolderLookup.Provider p_324570_) protected voidloadAdditional(CompoundTag p_338669_, HolderLookup.Provider p_338291_) loadEffect(CompoundTag p_298570_, String p_299310_) static voidplaySound(Level p_155104_, BlockPos p_155105_, SoundEvent p_155106_) voidremoveComponentsFromTag(CompoundTag p_331401_) protected voidsaveAdditional(CompoundTag p_187463_, HolderLookup.Provider p_324268_) voidsetCustomName(Component p_58682_) voidvoidprivate static voidstoreEffect(CompoundTag p_298214_, String p_298983_, Holder<MobEffect> p_316689_) 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.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpenMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
MAX_LEVELS
private static final int MAX_LEVELS- See Also:
-
BEACON_EFFECTS
-
VALID_EFFECTS
-
DATA_LEVELS
public static final int DATA_LEVELS- See Also:
-
DATA_PRIMARY
public static final int DATA_PRIMARY- See Also:
-
DATA_SECONDARY
public static final int DATA_SECONDARY- See Also:
-
NUM_DATA_VALUES
public static final int NUM_DATA_VALUES- See Also:
-
BLOCKS_CHECK_PER_TICK
private static final int BLOCKS_CHECK_PER_TICK- See Also:
-
DEFAULT_NAME
-
TAG_PRIMARY
- See Also:
-
TAG_SECONDARY
- See Also:
-
beamSections
List<BeaconBlockEntity.BeaconBeamSection> beamSections -
checkingBeamSections
-
levels
int levels -
lastCheckY
private int lastCheckY -
-
secondaryPower
-
name
-
lockKey
-
dataAccess
-
-
Constructor Details
-
BeaconBlockEntity
-
-
Method Details
-
filterEffect
-
tick
public static void tick(Level p_155108_, BlockPos p_155109_, BlockState p_155110_, BeaconBlockEntity p_155111_) -
updateBase
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classBlockEntity
-
applyEffects
-
playSound
-
getBeamSections
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
storeEffect
private static void storeEffect(CompoundTag p_298214_, String p_298983_, @Nullable Holder<MobEffect> p_316689_) -
loadEffect
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
setCustomName
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable
-
createMenu
@Nullable public AbstractContainerMenu createMenu(int p_58696_, Inventory p_58697_, Player p_58698_) - Specified by:
createMenuin interfaceMenuConstructor
-
getDisplayName
- Specified by:
getDisplayNamein interfaceMenuProvider- Specified by:
getDisplayNamein interfaceNameable
-
getName
-
applyImplicitComponents
- Overrides:
applyImplicitComponentsin classBlockEntity
-
collectImplicitComponents
- Overrides:
collectImplicitComponentsin classBlockEntity
-
removeComponentsFromTag
- Overrides:
removeComponentsFromTagin classBlockEntity
-
setLevel
- Overrides:
setLevelin classBlockEntity
-