类 BeaconBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BeaconBlockEntity
- 所有已实现的接口:
MenuConstructor
,BeaconBeamOwner
,MenuProvider
,Nameable
,IAttachmentHolder
,IBlockEntityExtension
,IMenuProviderExtension
public class BeaconBlockEntity
extends BlockEntity
implements MenuProvider, Nameable, BeaconBeamOwner
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.level.block.entity.BeaconBeamOwner
BeaconBeamOwner.Section
-
字段概要
字段修饰符和类型字段说明(专用程序包) List
<BeaconBeamOwner.Section> private static final int
private List
<BeaconBeamOwner.Section> static final int
static final int
static final int
private final ContainerData
private static final Component
private int
(专用程序包) int
private LockCode
private static final int
private Component
static final int
private static final String
private static final String
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
applyEffects
(Level p_155098_, BlockPos p_155099_, int p_155100_, Holder<MobEffect> p_316599_, Holder<MobEffect> p_316343_) protected void
applyImplicitComponents
(DataComponentGetter p_397309_) protected void
createMenu
(int p_58696_, Inventory p_58697_, Player p_58698_) filterEffect
(Holder<MobEffect> p_316372_) getName()
getUpdateTag
(HolderLookup.Provider p_324570_) protected void
loadAdditional
(ValueInput p_421952_) loadEffect
(ValueInput p_422185_, String p_299310_) static void
playSound
(Level p_155104_, BlockPos p_155105_, SoundEvent p_155106_) void
removeComponentsFromTag
(ValueOutput p_421511_) protected void
saveAdditional
(ValueOutput p_422018_) void
setCustomName
(Component p_58682_) void
void
private static void
storeEffect
(ValueOutput p_422641_, String p_298983_, Holder<MobEffect> p_316689_) static void
tick
(Level p_155108_, BlockPos p_155109_, BlockState p_155110_, BeaconBlockEntity p_155111_) private static int
updateBase
(Level p_155093_, int p_155094_, int p_155095_, int p_155096_) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
从接口继承的方法 net.neoforged.neoforge.common.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
-
字段详细资料
-
MAX_LEVELS
private static final int MAX_LEVELS- 另请参阅:
-
BEACON_EFFECTS
-
VALID_EFFECTS
-
DATA_LEVELS
public static final int DATA_LEVELS- 另请参阅:
-
DATA_PRIMARY
public static final int DATA_PRIMARY- 另请参阅:
-
DATA_SECONDARY
public static final int DATA_SECONDARY- 另请参阅:
-
NUM_DATA_VALUES
public static final int NUM_DATA_VALUES- 另请参阅:
-
BLOCKS_CHECK_PER_TICK
private static final int BLOCKS_CHECK_PER_TICK- 另请参阅:
-
DEFAULT_NAME
-
TAG_PRIMARY
- 另请参阅:
-
TAG_SECONDARY
- 另请参阅:
-
beamSections
List<BeaconBeamOwner.Section> beamSections -
checkingBeamSections
-
levels
int levels -
lastCheckY
private int lastCheckY -
-
secondaryPower
-
name
-
lockKey
-
dataAccess
-
-
构造器详细资料
-
BeaconBlockEntity
-
-
方法详细资料
-
filterEffect
-
tick
public static void tick(Level p_155108_, BlockPos p_155109_, BlockState p_155110_, BeaconBlockEntity p_155111_) -
updateBase
-
setRemoved
public void setRemoved()- 覆盖:
setRemoved
在类中BlockEntity
-
applyEffects
-
playSound
-
getBeamSections
- 指定者:
getBeamSections
在接口中BeaconBeamOwner
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
storeEffect
private static void storeEffect(ValueOutput p_422641_, String p_298983_, @Nullable Holder<MobEffect> p_316689_) -
loadEffect
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
setCustomName
-
getCustomName
- 指定者:
getCustomName
在接口中Nameable
-
createMenu
@Nullable public AbstractContainerMenu createMenu(int p_58696_, Inventory p_58697_, Player p_58698_) - 指定者:
createMenu
在接口中MenuConstructor
-
getDisplayName
- 指定者:
getDisplayName
在接口中MenuProvider
- 指定者:
getDisplayName
在接口中Nameable
-
getName
-
applyImplicitComponents
- 覆盖:
applyImplicitComponents
在类中BlockEntity
-
collectImplicitComponents
- 覆盖:
collectImplicitComponents
在类中BlockEntity
-
removeComponentsFromTag
- 覆盖:
removeComponentsFromTag
在类中BlockEntity
-
setLevel
- 覆盖:
setLevel
在类中BlockEntity
-