net.minecraft.world.level.block.entity

public class StructureBlockEntity

extends BlockEntity

dqy
net.minecraft.world.level.block.entity.StructureBlockEntity
net.minecraft.class_2633
net.minecraft.block.entity.StructureBlockBlockEntity
net.minecraft.src.C_2029_
net.minecraft.world.level.block.entity.TileEntityStructure

Field summary

Modifier and TypeField
private static final int
d
SCAN_CORNER_BLOCKS_RANGE
field_31367
field_31367
f_155777_
public static final int
a
MAX_OFFSET_PER_AXIS
field_31364
field_31364
f_155774_
public static final int
b
MAX_SIZE_PER_AXIS
field_31365
field_31365
f_155775_
public static final String
c
AUTHOR_TAG
field_31366
AUTHOR_KEY
f_155776_
private ResourceLocation
e
structureName
field_12102
templateName
f_59812_
private String
f
author
field_12104
author
f_59813_
private String
g
metaData
field_12098
metadata
f_59814_
private BlockPos
h
structurePos
field_12092
offset
f_59815_
private Vec3i
i
structureSize
field_12100
size
f_59816_
private Mirror
j
mirror
field_12093
mirror
f_59817_
private Rotation
k
rotation
field_12105
rotation
f_59818_
private StructureMode
l
mode
field_12094
mode
f_59819_
private boolean
m
ignoreEntities
field_12099
ignoreEntities
f_59820_
private boolean
q
powered
field_12097
powered
f_59821_
private boolean
r
showAir
field_12096
showAir
f_59822_
private boolean
s
showBoundingBox
field_12095
showBoundingBox
f_59823_
private float
t
integrity
field_12101
integrity
f_59824_
private long
u
seed
field_12103
seed
f_59825_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
b(us arg0, jk$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_183515_(C_4917_ p_331199_, C_213466_$C_254607_ arg1)
protected void
a(us arg0, jk$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_318667_(C_4917_ p_334283_, C_213466_$C_254607_ arg1)
private void
G()
updateBlockState()
method_11348()
updateBlockMode()
m_59836_()
public ClientboundBlockEntityDataPacket
b()
getUpdatePacket()
method_38252()
toUpdatePacket()
m_58483_()
public CompoundTag
a(jk$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
m_5995_(C_213466_$C_254607_ arg0)
public boolean
a(cmz arg0)
usedBy(Player arg0)
method_11351(class_1657 arg0)
openScreen(PlayerEntity player)
m_59853_(C_1141_ arg0)
public String
c()
getStructureName()
method_11362()
getTemplateName()
m_59895_()
public boolean
d()
hasStructureName()
method_11384()
hasStructureName()
m_59901_()
public void
a(String arg0)
setStructureName(String arg0)
method_11343(String arg0)
setTemplateName(String templateName)
m_59868_(String arg0)
public void
a(alf arg0)
setStructureName(ResourceLocation arg0)
method_11344(class_2960 arg0)
setTemplateName(Identifier templateName)
m_59874_(C_5265_ arg0)
public void
a(btr arg0)
createdBy(LivingEntity arg0)
method_11373(class_1309 arg0)
setAuthor(LivingEntity entity)
m_59851_(C_524_ arg0)
public BlockPos
f()
getStructurePos()
method_11359()
getOffset()
m_59902_()
public void
a(iz arg0)
setStructurePos(BlockPos arg0)
method_11378(class_2338 arg0)
setOffset(BlockPos offset)
m_59885_(C_4675_ arg0)
public Vec3i
j()
getStructureSize()
method_11349()
getSize()
m_155805_()
public void
a(kd arg0)
setStructureSize(Vec3i arg0)
method_11377(class_2382 arg0)
setSize(Vec3i size)
m_155797_(C_4713_ arg0)
public Mirror
k()
getMirror()
method_11345()
getMirror()
m_59905_()
public void
a(djy arg0)
setMirror(Mirror arg0)
method_11356(class_2415 arg0)
setMirror(BlockMirror mirror)
m_59881_(C_1838_ arg0)
public Rotation
l()
getRotation()
method_11353()
getRotation()
m_59906_()
public void
a(dlo arg0)
setRotation(Rotation arg0)
method_11385(class_2470 arg0)
setRotation(BlockRotation rotation)
m_59883_(C_1886_ arg0)
public String
u()
getMetaData()
method_11358()
getMetadata()
m_59907_()
public void
b(String arg0)
setMetaData(String arg0)
method_11363(String arg0)
setMetadata(String metadata)
m_59887_(String arg0)
public StructureMode
v()
getMode()
method_11374()
getMode()
m_59908_()
public void
a(dto arg0)
setMode(StructureMode arg0)
method_11381(class_2776 arg0)
setMode(StructureBlockMode mode)
m_59860_(C_2104_ arg0)
public boolean
w()
isIgnoreEntities()
method_11367()
shouldIgnoreEntities()
m_59910_()
public void
a(boolean arg0)
setIgnoreEntities(boolean arg0)
method_11352(boolean arg0)
setIgnoreEntities(boolean ignoreEntities)
m_59876_(boolean arg0)
public float
x()
getIntegrity()
method_11346()
getIntegrity()
m_59827_()
public void
a(float arg0)
setIntegrity(float arg0)
method_11370(float arg0)
setIntegrity(float integrity)
m_59838_(float arg0)
public long
y()
getSeed()
method_11371()
getSeed()
m_59828_()
public void
a(long arg0)
setSeed(long arg0)
method_11382(long arg0)
setSeed(long seed)
m_59840_(long arg0)
public boolean
z()
detectSize()
method_11383()
detectStructureSize()
m_59829_()
private Stream<BlockPos>
a(iz arg0, iz arg1)
getRelatedCorners(BlockPos arg0, BlockPos arg1)
method_34276(class_2338 arg0, class_2338 arg1)
streamCornerPos(BlockPos start, BlockPos end)
m_155791_(C_4675_ p_155793_, C_4675_ arg1)
private static Optional<BoundingBox>
a(iz arg0, Stream<iz> arg1)
calculateEnclosingBoundingBox(BlockPos arg0, Stream<BlockPos> arg1)
method_34277(class_2338 arg0, Stream<class_2338> arg1)
getStructureBox(BlockPos pos, Stream<BlockPos> corners)
m_155794_(C_4675_ p_155795_, Stream<C_4675_> p_155796_)
public boolean
A()
saveStructure()
method_11365()
saveStructure()
m_59830_()
public boolean
b(boolean arg0)
saveStructure(boolean arg0)
method_11366(boolean arg0)
saveStructure(boolean interactive)
m_59889_(boolean arg0)
public static RandomSource
b(long arg0)
createRandom(long arg0)
method_20048(long arg0)
createRandom(long seed)
m_222888_(long p_222889_)
public boolean
a(arf arg0)
placeStructureIfSameSize(ServerLevel arg0)
method_54874(class_3218 arg0)
loadAndTryPlaceStructure(ServerWorld world)
m_306422_(C_12_ arg0)
public boolean
b(arf arg0)
loadStructureInfo(ServerLevel arg0)
method_11376(class_3218 arg0)
loadStructure(ServerWorld world)
m_305135_(C_12_ arg0)
private void
a(emm arg0)
loadStructureInfo(StructureTemplate arg0)
method_54877(class_3499 arg0)
loadStructure(StructureTemplate template)
m_305456_(C_2634_ arg0)
public void
c(arf arg0)
placeStructure(ServerLevel arg0)
method_54878(class_3218 arg0)
loadAndPlaceStructure(ServerWorld world)
m_305508_(C_12_ arg0)
private StructureTemplate
d(arf arg0)
getStructureTemplate(ServerLevel arg0)
method_54879(class_3218 arg0)
getStructureTemplate(ServerWorld world)
m_305438_(C_12_ arg0)
private void
a(arf arg0, emm arg1)
placeStructure(ServerLevel arg0, StructureTemplate arg1)
method_54875(class_3218 arg0, class_3499 arg1)
loadAndPlaceStructure(ServerWorld world, StructureTemplate template)
m_306620_(C_12_ p_312324_, C_2634_ arg1)
public void
B()
unloadStructure()
method_11361()
unloadStructure()
m_59831_()
public boolean
C()
isStructureLoadable()
method_11372()
isStructureAvailable()
m_59832_()
public boolean
D()
isPowered()
method_11354()
isPowered()
m_59833_()
public void
c(boolean arg0)
setPowered(boolean arg0)
method_11379(boolean arg0)
setPowered(boolean powered)
m_59893_(boolean arg0)
public boolean
E()
getShowAir()
method_11375()
shouldShowAir()
m_59834_()
public void
d(boolean arg0)
setShowAir(boolean arg0)
method_11347(boolean arg0)
setShowAir(boolean showAir)
m_59896_(boolean arg0)
public boolean
F()
getShowBoundingBox()
method_11357()
shouldShowBoundingBox()
m_59835_()
public void
e(boolean arg0)
setShowBoundingBox(boolean arg0)
method_11360(boolean arg0)
setShowBoundingBox(boolean showBoundingBox)
m_59898_(boolean arg0)