类 StructureBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.StructureBlockEntity
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.level.block.entity.BoundingBoxRenderable
BoundingBoxRenderable.Mode, BoundingBoxRenderable.RenderableBox
-
字段概要
字段修饰符和类型字段说明private String
static final String
private static final String
private static final boolean
private static final float
private static final String
private static final Mirror
private static final BlockPos
private static final boolean
private static final Rotation
private static final long
private static final boolean
private static final boolean
private static final Vec3i
private static final boolean
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 boolean
private ResourceLocation
private BlockPos
private Vec3i
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static Optional
<BoundingBox> calculateEnclosingBoundingBox
(BlockPos p_155795_, Stream<BlockPos> p_155796_) void
createdBy
(LivingEntity p_59852_) static RandomSource
createRandom
(long p_222889_) boolean
float
getMode()
getRelatedCorners
(BlockPos p_155792_, BlockPos p_155793_) long
getSeed()
boolean
boolean
private StructureTemplate
getStructureTemplate
(ServerLevel p_309601_) getUpdateTag
(HolderLookup.Provider p_324257_) boolean
boolean
boolean
boolean
isStrict()
boolean
protected void
loadAdditional
(ValueInput p_422679_) boolean
loadStructureInfo
(ServerLevel p_309683_) private void
loadStructureInfo
(StructureTemplate p_309715_) void
placeStructure
(ServerLevel p_309543_) private void
placeStructure
(ServerLevel p_309691_, StructureTemplate p_309550_) boolean
placeStructureIfSameSize
(ServerLevel p_309647_) protected void
saveAdditional
(ValueOutput p_422197_) boolean
boolean
saveStructure
(boolean p_59890_) static boolean
saveStructure
(ServerLevel p_396983_, ResourceLocation p_397437_, BlockPos p_397750_, Vec3i p_397557_, boolean p_397306_, String p_397604_, boolean p_397822_, List<Block> p_428567_) void
setIgnoreEntities
(boolean p_59877_) void
setIntegrity
(float p_59839_) void
setMetaData
(String p_59888_) void
void
setMode
(StructureMode p_59861_) void
setPowered
(boolean p_59894_) void
setRotation
(Rotation p_59884_) void
setSeed
(long p_59841_) void
setShowAir
(boolean p_59897_) void
setShowBoundingBox
(boolean p_59899_) void
setStrict
(boolean p_393555_) void
setStructureName
(String p_59869_) void
setStructureName
(ResourceLocation p_59875_) void
setStructurePos
(BlockPos p_59886_) void
setStructureSize
(Vec3i p_155798_) void
private void
boolean
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, 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
-
字段详细资料
-
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
- 另请参阅:
-
DEFAULT_AUTHOR
- 另请参阅:
-
DEFAULT_METADATA
- 另请参阅:
-
DEFAULT_POS
-
DEFAULT_SIZE
-
DEFAULT_ROTATION
-
DEFAULT_MIRROR
-
DEFAULT_IGNORE_ENTITIES
private static final boolean DEFAULT_IGNORE_ENTITIES- 另请参阅:
-
DEFAULT_STRICT
private static final boolean DEFAULT_STRICT- 另请参阅:
-
DEFAULT_POWERED
private static final boolean DEFAULT_POWERED- 另请参阅:
-
DEFAULT_SHOW_AIR
private static final boolean DEFAULT_SHOW_AIR- 另请参阅:
-
DEFAULT_SHOW_BOUNDING_BOX
private static final boolean DEFAULT_SHOW_BOUNDING_BOX- 另请参阅:
-
DEFAULT_INTEGRITY
private static final float DEFAULT_INTEGRITY- 另请参阅:
-
DEFAULT_SEED
private static final long DEFAULT_SEED- 另请参阅:
-
structureName
-
author
-
metaData
-
structurePos
-
structureSize
-
mirror
-
rotation
-
mode
-
ignoreEntities
private boolean ignoreEntities -
strict
private boolean strict -
powered
private boolean powered -
showAir
private boolean showAir -
showBoundingBox
private boolean showBoundingBox -
integrity
private float integrity -
seed
private long seed
-
-
构造器详细资料
-
StructureBlockEntity
-
-
方法详细资料
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
updateBlockState
private void updateBlockState() -
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
usedBy
-
getStructureName
-
hasStructureName
public boolean hasStructureName() -
setStructureName
-
setStructureName
-
createdBy
-
getStructurePos
-
setStructurePos
-
getStructureSize
-
setStructureSize
-
getMirror
-
setMirror
-
getRotation
-
setRotation
-
getMetaData
-
setMetaData
-
getMode
-
setMode
-
isIgnoreEntities
public boolean isIgnoreEntities() -
isStrict
public boolean isStrict() -
setIgnoreEntities
public void setIgnoreEntities(boolean p_59877_) -
setStrict
public void setStrict(boolean p_393555_) -
getIntegrity
public float getIntegrity() -
setIntegrity
public void setIntegrity(float p_59839_) -
getSeed
public long getSeed() -
setSeed
public void setSeed(long p_59841_) -
detectSize
public boolean detectSize() -
getRelatedCorners
-
calculateEnclosingBoundingBox
private static Optional<BoundingBox> calculateEnclosingBoundingBox(BlockPos p_155795_, Stream<BlockPos> p_155796_) -
saveStructure
public boolean saveStructure() -
saveStructure
public boolean saveStructure(boolean p_59890_) -
saveStructure
public static boolean saveStructure(ServerLevel p_396983_, ResourceLocation p_397437_, BlockPos p_397750_, Vec3i p_397557_, boolean p_397306_, String p_397604_, boolean p_397822_, List<Block> p_428567_) -
createRandom
-
placeStructureIfSameSize
-
loadStructureInfo
-
loadStructureInfo
-
placeStructure
-
getStructureTemplate
-
placeStructure
-
unloadStructure
public void unloadStructure() -
isStructureLoadable
public boolean isStructureLoadable() -
isPowered
public boolean isPowered() -
setPowered
public void setPowered(boolean p_59894_) -
getShowAir
public boolean getShowAir() -
setShowAir
public void setShowAir(boolean p_59897_) -
getShowBoundingBox
public boolean getShowBoundingBox() -
setShowBoundingBox
public void setShowBoundingBox(boolean p_59899_) -
renderMode
- 指定者:
renderMode
在接口中BoundingBoxRenderable
-
getRenderableBox
- 指定者:
getRenderableBox
在接口中BoundingBoxRenderable
-