Package net.minecraft.block.entity
Class StructureBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.StructureBlockBlockEntity
public class StructureBlockBlockEntity extends BlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStructureBlockBlockEntity.Action -
Field Summary
Fields Modifier and Type Field Description private Stringauthorprivate booleanignoreEntitiesprivate floatintegrityprivate Stringmetadataprivate BlockMirrormirrorprivate StructureBlockModemodeprivate BlockPosoffsetprivate booleanpoweredprivate BlockRotationrotationprivate longseedprivate booleanshowAirprivate booleanshowBoundingBoxprivate BlockPossizeprivate IdentifierstructureNameFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description StructureBlockBlockEntity(BlockPos blockPos, BlockState blockState) -
Method Summary
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld
-
Field Details
-
structureName
-
author
-
metadata
-
offset
-
size
-
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
-
StructureBlockBlockEntity
-
-
Method Details
-
getSquaredRenderDistance
@Environment(CLIENT) public double getSquaredRenderDistance()- Overrides:
getSquaredRenderDistancein classBlockEntity
-
toTag
- Overrides:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
updateBlockMode
private void updateBlockMode() -
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
openScreen
-
getStructureName
-
getStructurePath
-
hasStructureName
public boolean hasStructureName() -
setStructureName
-
setStructureName
-
setAuthor
-
getOffset
-
setOffset
-
getSize
-
setSize
-
getMirror
-
setMirror
-
getRotation
-
setRotation
-
getMetadata
-
setMetadata
-
getMode
-
setMode
-
shouldIgnoreEntities
@Environment(CLIENT) public boolean shouldIgnoreEntities() -
setIgnoreEntities
public void setIgnoreEntities(boolean ignoreEntities) -
getIntegrity
@Environment(CLIENT) public float getIntegrity() -
setIntegrity
public void setIntegrity(float integrity) -
getSeed
@Environment(CLIENT) public long getSeed() -
setSeed
public void setSeed(long seed) -
detectStructureSize
public boolean detectStructureSize() -
findCorners
private List<StructureBlockBlockEntity> findCorners(List<StructureBlockBlockEntity> structureBlockEntities) -
findStructureBlockEntities
-
makeBoundingBox
-
saveStructure
public boolean saveStructure() -
saveStructure
public boolean saveStructure(boolean bool) -
loadStructure
-
createRandom
-
loadStructure
-
place
-
unloadStructure
public void unloadStructure() -
isStructureAvailable
public boolean isStructureAvailable() -
isPowered
public boolean isPowered() -
setPowered
public void setPowered(boolean powered) -
shouldShowAir
@Environment(CLIENT) public boolean shouldShowAir() -
setShowAir
public void setShowAir(boolean showAir) -
shouldShowBoundingBox
@Environment(CLIENT) public boolean shouldShowBoundingBox() -
setShowBoundingBox
public void setShowBoundingBox(boolean showBoundingBox)
-