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 class
StructureBlockTileEntity.UpdateCommand
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
author
private boolean
ignoreEntities
private float
integrity
private java.lang.String
metaData
private Mirror
mirror
private StructureMode
mode
private boolean
powered
private Rotation
rotation
private long
seed
private boolean
showAir
private boolean
showBoundingBox
private ResourceLocation
structureName
private BlockPos
structurePos
private BlockPos
structureSize
-
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 MutableBoundingBox
calculateEnclosingBoundingBox(BlockPos p_184416_1_, java.util.List<StructureBlockTileEntity> p_184416_2_)
void
createdBy(LivingEntity p_189720_1_)
private static java.util.Random
createRandom(long p_214074_0_)
boolean
detectSize()
private java.util.List<StructureBlockTileEntity>
filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_)
float
getIntegrity()
java.lang.String
getMetaData()
Mirror
getMirror()
StructureMode
getMode()
private java.util.List<StructureBlockTileEntity>
getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)
Rotation
getRotation()
long
getSeed()
boolean
getShowAir()
boolean
getShowBoundingBox()
java.lang.String
getStructureName()
java.lang.String
getStructurePath()
BlockPos
getStructurePos()
BlockPos
getStructureSize()
SUpdateTileEntityPacket
getUpdatePacket()
CompoundNBT
getUpdateTag()
double
getViewDistance()
boolean
hasStructureName()
boolean
isIgnoreEntities()
boolean
isPowered()
boolean
isStructureLoadable()
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()
CompoundNBT
save(CompoundNBT p_189515_1_)
boolean
saveStructure()
boolean
saveStructure(boolean p_189712_1_)
void
setIgnoreEntities(boolean p_184406_1_)
void
setIntegrity(float p_189718_1_)
void
setMetaData(java.lang.String p_184410_1_)
void
setMirror(Mirror p_184411_1_)
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(java.lang.String p_184404_1_)
void
setStructureName(ResourceLocation p_210163_1_)
void
setStructurePos(BlockPos p_184414_1_)
void
setStructureSize(BlockPos p_184409_1_)
void
unloadStructure()
private void
updateBlockState()
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 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:
getViewDistance
in classTileEntity
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
updateBlockState
private void updateBlockState()
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in 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_)
-
-