Class StructureBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.StructureBlockEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,IForgeBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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_310290_) getUpdateTag
(HolderLookup.Provider p_327713_) boolean
boolean
boolean
boolean
protected void
loadAdditional
(CompoundTag p_332447_, HolderLookup.Provider p_334283_) boolean
loadStructureInfo
(ServerLevel p_312602_) private void
loadStructureInfo
(StructureTemplate p_311753_) void
placeStructure
(ServerLevel p_312292_) private void
placeStructure
(ServerLevel p_311121_, StructureTemplate p_312324_) boolean
placeStructureIfSameSize
(ServerLevel p_310062_) protected void
saveAdditional
(CompoundTag p_187524_, HolderLookup.Provider p_331199_) boolean
boolean
saveStructure
(boolean p_59890_) 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
setStructureName
(String p_59869_) void
setStructureName
(ResourceLocation p_59875_) void
setStructurePos
(BlockPos p_59886_) void
setStructureSize
(Vec3i p_155798_) void
private void
boolean
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
SCAN_CORNER_BLOCKS_RANGE
private static final int SCAN_CORNER_BLOCKS_RANGE- See Also:
-
MAX_OFFSET_PER_AXIS
public static final int MAX_OFFSET_PER_AXIS- See Also:
-
MAX_SIZE_PER_AXIS
public static final int MAX_SIZE_PER_AXIS- See Also:
-
AUTHOR_TAG
- See Also:
-
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
-
-
Constructor Details
-
StructureBlockEntity
-
-
Method Details
-
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
loadAdditional
- Overrides:
loadAdditional
in classBlockEntity
-
updateBlockState
private void updateBlockState() -
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
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() -
setIgnoreEntities
public void setIgnoreEntities(boolean p_59877_) -
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_) -
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_)
-