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>
public class StructureBlockTileEntity extends TileEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStructureBlockTileEntity.UpdateCommand
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringauthorprivate booleanignoreEntitiesprivate floatintegrityprivate java.lang.StringmetaDataprivate Mirrormirrorprivate StructureModemodeprivate booleanpoweredprivate Rotationrotationprivate longseedprivate booleanshowAirprivate booleanshowBoundingBoxprivate ResourceLocationstructureNameprivate BlockPosstructurePosprivate BlockPosstructureSize-
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
Constructors Constructor Description StructureBlockTileEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private MutableBoundingBoxcalculateEnclosingBoundingBox(BlockPos p_184416_1_, java.util.List<StructureBlockTileEntity> p_184416_2_)voidcreatedBy(LivingEntity p_189720_1_)private static java.util.RandomcreateRandom(long p_214074_0_)booleandetectSize()private java.util.List<StructureBlockTileEntity>filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_)floatgetIntegrity()java.lang.StringgetMetaData()MirrorgetMirror()StructureModegetMode()private java.util.List<StructureBlockTileEntity>getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)RotationgetRotation()longgetSeed()booleangetShowAir()booleangetShowBoundingBox()java.lang.StringgetStructureName()java.lang.StringgetStructurePath()BlockPosgetStructurePos()BlockPosgetStructureSize()SUpdateTileEntityPacketgetUpdatePacket()CompoundNBTgetUpdateTag()doublegetViewDistance()booleanhasStructureName()booleanisIgnoreEntities()booleanisPowered()booleanisStructureLoadable()voidload(BlockState p_230337_1_, CompoundNBT p_230337_2_)booleanloadStructure(ServerWorld p_242687_1_)booleanloadStructure(ServerWorld p_242688_1_, boolean p_242688_2_)booleanloadStructure(ServerWorld p_242689_1_, boolean p_242689_2_, Template p_242689_3_)voidnextMode()CompoundNBTsave(CompoundNBT p_189515_1_)booleansaveStructure()booleansaveStructure(boolean p_189712_1_)voidsetIgnoreEntities(boolean p_184406_1_)voidsetIntegrity(float p_189718_1_)voidsetMetaData(java.lang.String p_184410_1_)voidsetMirror(Mirror p_184411_1_)voidsetMode(StructureMode p_184405_1_)voidsetPowered(boolean p_189723_1_)voidsetRotation(Rotation p_184408_1_)voidsetSeed(long p_189725_1_)voidsetShowAir(boolean p_189703_1_)voidsetShowBoundingBox(boolean p_189710_1_)voidsetStructureName(java.lang.String p_184404_1_)voidsetStructureName(ResourceLocation p_210163_1_)voidsetStructurePos(BlockPos p_184414_1_)voidsetStructureSize(BlockPos p_184409_1_)voidunloadStructure()private voidupdateBlockState()booleanusedBy(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 Detail
-
structureName
private ResourceLocation structureName
-
author
private java.lang.String author
-
metaData
private java.lang.String metaData
-
structurePos
private BlockPos structurePos
-
structureSize
private BlockPos structureSize
-
mirror
private Mirror mirror
-
rotation
private Rotation rotation
-
mode
private StructureMode 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
-
-
Method Detail
-
getViewDistance
public double getViewDistance()
- Overrides:
getViewDistancein classTileEntity
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
savein classTileEntity
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
loadin classTileEntity
-
updateBlockState
private void updateBlockState()
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacketin classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTagin classTileEntity
-
usedBy
public boolean usedBy(PlayerEntity p_189701_1_)
-
getStructureName
public java.lang.String getStructureName()
-
getStructurePath
public java.lang.String getStructurePath()
-
hasStructureName
public boolean hasStructureName()
-
setStructureName
public void setStructureName(@Nullable java.lang.String p_184404_1_)
-
setStructureName
public void setStructureName(@Nullable ResourceLocation p_210163_1_)
-
createdBy
public void createdBy(LivingEntity p_189720_1_)
-
getStructurePos
public BlockPos getStructurePos()
-
setStructurePos
public void setStructurePos(BlockPos p_184414_1_)
-
getStructureSize
public BlockPos getStructureSize()
-
setStructureSize
public void setStructureSize(BlockPos p_184409_1_)
-
getMirror
public Mirror getMirror()
-
setMirror
public void setMirror(Mirror p_184411_1_)
-
getRotation
public Rotation getRotation()
-
setRotation
public void setRotation(Rotation p_184408_1_)
-
getMetaData
public java.lang.String getMetaData()
-
setMetaData
public void setMetaData(java.lang.String p_184410_1_)
-
getMode
public StructureMode getMode()
-
setMode
public void setMode(StructureMode p_184405_1_)
-
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 java.util.List<StructureBlockTileEntity> filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_)
-
getNearbyCornerBlocks
private java.util.List<StructureBlockTileEntity> getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)
-
calculateEnclosingBoundingBox
private MutableBoundingBox calculateEnclosingBoundingBox(BlockPos p_184416_1_, java.util.List<StructureBlockTileEntity> p_184416_2_)
-
saveStructure
public boolean saveStructure()
-
saveStructure
public boolean saveStructure(boolean p_189712_1_)
-
loadStructure
public boolean loadStructure(ServerWorld p_242687_1_)
-
createRandom
private static java.util.Random createRandom(long p_214074_0_)
-
loadStructure
public boolean loadStructure(ServerWorld p_242688_1_, boolean p_242688_2_)
-
loadStructure
public boolean loadStructure(ServerWorld p_242689_1_, boolean p_242689_2_, Template p_242689_3_)
-
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_)
-
-