类 BeaconBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BeaconBlockEntity
- 所有已实现的接口:
MenuConstructor
,MenuProvider
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明static final MobEffect[][]
(专用程序包) List<BeaconBlockEntity.BeaconBeamSection>
private static final int
private List<BeaconBlockEntity.BeaconBeamSection>
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
(专用程序包) MobEffect
(专用程序包) MobEffect
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
applyEffects
(Level pLevel, BlockPos pPos, int pLevels, MobEffect pPrimary, MobEffect pSecondary) createMenu
(int pContainerId, Inventory pPlayerInventory, Player pPlayer) getName()
(专用程序包) static MobEffect
getValidEffectById
(int pEffectId) void
load
(CompoundTag pTag) static void
playSound
(Level pLevel, BlockPos pPos, SoundEvent pSound) protected void
saveAdditional
(CompoundTag pTag) void
setCustomName
(Component pName) void
void
static void
tick
(Level pLevel, BlockPos pPos, BlockState pState, BeaconBlockEntity pBlockEntity) private static int
updateBase
(Level pLevel, int pX, int pY, int pZ) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, triggerEvent
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
从接口继承的方法 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
-
beamSections
List<BeaconBlockEntity.BeaconBeamSection> beamSections -
checkingBeamSections
-
levels
int levels -
lastCheckY
private int lastCheckY -
-
secondaryPower
-
name
-
lockKey
-
dataAccess
-
-
构造器详细资料
-
BeaconBlockEntity
-
-
方法详细资料
-
tick
public static void tick(Level pLevel, BlockPos pPos, BlockState pState, BeaconBlockEntity pBlockEntity) -
updateBase
-
setRemoved
public void setRemoved()- 覆盖:
setRemoved
在类中BlockEntity
-
applyEffects
-
playSound
-
getBeamSections
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
getValidEffectById
-
load
- 覆盖:
load
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
setCustomName
-
getCustomName
- 指定者:
getCustomName
在接口中Nameable
-
createMenu
@Nullable public AbstractContainerMenu createMenu(int pContainerId, Inventory pPlayerInventory, Player pPlayer) - 指定者:
createMenu
在接口中MenuConstructor
-
getDisplayName
- 指定者:
getDisplayName
在接口中MenuProvider
- 指定者:
getDisplayName
在接口中Nameable
-
getName
-
setLevel
- 覆盖:
setLevel
在类中BlockEntity
-