类 StructureBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.StructureBlockEntity
- 所有已实现的接口:
ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private String
static final String
private boolean
private float
static final int
static final int
private String
private Mirror
private StructureMode
private boolean
private Rotation
private static final int
private long
private boolean
private boolean
private ResourceLocation
private BlockPos
private Vec3i
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static Optional<BoundingBox>
calculateEnclosingBoundingBox
(BlockPos pPos, Stream<BlockPos> pRelatedCorners) void
createdBy
(LivingEntity pAuthor) static RandomSource
createRandom
(long pSeed) boolean
float
getMode()
getRelatedCorners
(BlockPos pMinPos, BlockPos pMaxPos) long
getSeed()
boolean
boolean
boolean
boolean
boolean
boolean
void
load
(CompoundTag pTag) boolean
loadStructure
(ServerLevel pLevel) boolean
loadStructure
(ServerLevel pLevel, boolean p_59846_) boolean
loadStructure
(ServerLevel pLevel, boolean p_59849_, StructureTemplate pTemplate) protected void
saveAdditional
(CompoundTag pTag) boolean
boolean
saveStructure
(boolean pWriteToDisk) void
setIgnoreEntities
(boolean pIgnoreEntities) void
setIntegrity
(float pIntegrity) void
setMetaData
(String pMetaData) void
void
setMode
(StructureMode pMode) void
setPowered
(boolean pPowered) void
setRotation
(Rotation pRotation) void
setSeed
(long pSeed) void
setShowAir
(boolean pShowAir) void
setShowBoundingBox
(boolean pShowBoundingBox) void
setStructureName
(String pStructureName) void
setStructureName
(ResourceLocation pStructureName) void
setStructurePos
(BlockPos pStructurePos) void
setStructureSize
(Vec3i pStructureSize) void
private void
boolean
从类继承的方法 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, setLevel, setRemoved, 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
-
字段详细资料
-
SCAN_CORNER_BLOCKS_RANGE
private static final int SCAN_CORNER_BLOCKS_RANGE- 另请参阅:
-
MAX_OFFSET_PER_AXIS
public static final int MAX_OFFSET_PER_AXIS- 另请参阅:
-
MAX_SIZE_PER_AXIS
public static final int MAX_SIZE_PER_AXIS- 另请参阅:
-
AUTHOR_TAG
- 另请参阅:
-
structureName
-
author
-
metaData
-
structurePos
-
structureSize
-
mirror
-
rotation
-
mode
-
ignoreEntities
private boolean ignoreEntities -
powered
private boolean powered -
showAir
private boolean showAir -
showBoundingBox
private boolean showBoundingBox -
integrity
private float integrity -
seed
private long seed
-
-
构造器详细资料
-
StructureBlockEntity
-
-
方法详细资料
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
load
- 覆盖:
load
在类中BlockEntity
-
updateBlockState
private void updateBlockState() -
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
usedBy
-
getStructureName
-
getStructurePath
-
hasStructureName
public boolean hasStructureName() -
setStructureName
-
setStructureName
-
createdBy
-
getStructurePos
-
setStructurePos
-
getStructureSize
-
setStructureSize
-
getMirror
-
setMirror
-
getRotation
-
setRotation
-
getMetaData
-
setMetaData
-
getMode
-
setMode
-
isIgnoreEntities
public boolean isIgnoreEntities() -
setIgnoreEntities
public void setIgnoreEntities(boolean pIgnoreEntities) -
getIntegrity
public float getIntegrity() -
setIntegrity
public void setIntegrity(float pIntegrity) -
getSeed
public long getSeed() -
setSeed
public void setSeed(long pSeed) -
detectSize
public boolean detectSize() -
getRelatedCorners
-
calculateEnclosingBoundingBox
private static Optional<BoundingBox> calculateEnclosingBoundingBox(BlockPos pPos, Stream<BlockPos> pRelatedCorners) -
saveStructure
public boolean saveStructure() -
saveStructure
public boolean saveStructure(boolean pWriteToDisk) -
loadStructure
-
createRandom
-
loadStructure
-
loadStructure
-
unloadStructure
public void unloadStructure() -
isStructureLoadable
public boolean isStructureLoadable() -
isPowered
public boolean isPowered() -
setPowered
public void setPowered(boolean pPowered) -
getShowAir
public boolean getShowAir() -
setShowAir
public void setShowAir(boolean pShowAir) -
getShowBoundingBox
public boolean getShowBoundingBox() -
setShowBoundingBox
public void setShowBoundingBox(boolean pShowBoundingBox)
-