Package net.minecraft.tileentity
Class StructureBlockTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
net.minecraft.tileentity.StructureBlockTileEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private boolean
private float
private String
private Mirror
private StructureMode
private boolean
private Rotation
private long
private boolean
private boolean
private ResourceLocation
private BlockPos
private BlockPos
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate MutableBoundingBox
calculateEnclosingBoundingBox
(BlockPos p_184416_1_, List<StructureBlockTileEntity> p_184416_2_) void
createdBy
(LivingEntity p_189720_1_) private static Random
createRandom
(long p_214074_0_) boolean
private List<StructureBlockTileEntity>
filterRelatedCornerBlocks
(List<StructureBlockTileEntity> p_184415_1_) float
getMode()
private List<StructureBlockTileEntity>
getNearbyCornerBlocks
(BlockPos p_184418_1_, BlockPos p_184418_2_) long
getSeed()
boolean
boolean
double
boolean
boolean
boolean
boolean
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) boolean
loadStructure
(ServerWorld p_242687_1_) boolean
loadStructure
(ServerWorld p_242688_1_, boolean p_242688_2_) boolean
loadStructure
(ServerWorld p_242689_1_, boolean p_242689_2_, Template p_242689_3_) void
nextMode()
save
(CompoundNBT p_189515_1_) boolean
boolean
saveStructure
(boolean p_189712_1_) void
setIgnoreEntities
(boolean p_184406_1_) void
setIntegrity
(float p_189718_1_) void
setMetaData
(String p_184410_1_) void
void
setMode
(StructureMode p_184405_1_) void
setPowered
(boolean p_189723_1_) void
setRotation
(Rotation p_184408_1_) void
setSeed
(long p_189725_1_) void
setShowAir
(boolean p_189703_1_) void
setShowBoundingBox
(boolean p_189710_1_) void
setStructureName
(String p_184404_1_) void
setStructureName
(ResourceLocation p_210163_1_) void
setStructurePos
(BlockPos p_184414_1_) void
setStructureSize
(BlockPos p_184409_1_) void
private void
boolean
usedBy
(PlayerEntity p_189701_1_) Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, 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.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
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
-
StructureBlockTileEntity
public StructureBlockTileEntity()
-
-
Method Details
-
getViewDistance
public double getViewDistance()- Overrides:
getViewDistance
in classTileEntity
-
save
- Overrides:
save
in classTileEntity
-
load
- Overrides:
load
in classTileEntity
-
updateBlockState
private void updateBlockState() -
getUpdatePacket
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classTileEntity
-
usedBy
-
getStructureName
-
getStructurePath
-
hasStructureName
public boolean hasStructureName() -
setStructureName
-
setStructureName
-
createdBy
-
getStructurePos
-
setStructurePos
-
getStructureSize
-
setStructureSize
-
getMirror
-
setMirror
-
getRotation
-
setRotation
-
getMetaData
-
setMetaData
-
getMode
-
setMode
-
nextMode
public void nextMode() -
isIgnoreEntities
public boolean isIgnoreEntities() -
setIgnoreEntities
public void setIgnoreEntities(boolean p_184406_1_) -
getIntegrity
public float getIntegrity() -
setIntegrity
public void setIntegrity(float p_189718_1_) -
getSeed
public long getSeed() -
setSeed
public void setSeed(long p_189725_1_) -
detectSize
public boolean detectSize() -
filterRelatedCornerBlocks
private List<StructureBlockTileEntity> filterRelatedCornerBlocks(List<StructureBlockTileEntity> p_184415_1_) -
getNearbyCornerBlocks
private List<StructureBlockTileEntity> getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_) -
calculateEnclosingBoundingBox
private MutableBoundingBox calculateEnclosingBoundingBox(BlockPos p_184416_1_, List<StructureBlockTileEntity> p_184416_2_) -
saveStructure
public boolean saveStructure() -
saveStructure
public boolean saveStructure(boolean p_189712_1_) -
loadStructure
-
createRandom
-
loadStructure
-
loadStructure
-
unloadStructure
public void unloadStructure() -
isStructureLoadable
public boolean isStructureLoadable() -
isPowered
public boolean isPowered() -
setPowered
public void setPowered(boolean p_189723_1_) -
getShowAir
public boolean getShowAir() -
setShowAir
public void setShowAir(boolean p_189703_1_) -
getShowBoundingBox
public boolean getShowBoundingBox() -
setShowBoundingBox
public void setShowBoundingBox(boolean p_189710_1_)
-