net.minecraft.world.level.block.entity

public class StructureBlockEntity

extends BlockEntity implements BoundingBoxRenderable

All mapped superinterfaces:

BoundingBoxRenderable

dyg
net.minecraft.world.level.block.entity.StructureBlockEntity
net.minecraft.class_2633
net.minecraft.block.entity.StructureBlockBlockEntity

Field summary

Modifier and TypeField
private static final int
d
SCAN_CORNER_BLOCKS_RANGE
field_31367
field_31367
public static final int
a
MAX_OFFSET_PER_AXIS
field_31364
field_31364
public static final int
b
MAX_SIZE_PER_AXIS
field_31365
field_31365
public static final String
c
AUTHOR_TAG
field_31366
AUTHOR_KEY
private ResourceLocation
e
structureName
field_12102
templateName
private String
f
author
field_12104
author
private String
g
metaData
field_12098
metadata
private BlockPos
h
structurePos
field_12092
offset
private Vec3i
i
structureSize
field_12100
size
private Mirror
j
mirror
field_12093
mirror
private Rotation
k
rotation
field_12105
rotation
private StructureMode
l
mode
field_12094
mode
private boolean
m
ignoreEntities
field_12099
ignoreEntities
private boolean
q
strict
field_55823
strict
private boolean
r
powered
field_12097
powered
private boolean
s
showAir
field_12096
showAir
private boolean
t
showBoundingBox
field_12095
showBoundingBox
private float
u
integrity
field_12101
integrity
private long
v
seed
field_12103
seed

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
b(tx arg0, jg$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
a(tx arg0, jg$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
private void
H()
updateBlockState()
method_11348()
updateBlockMode()
public ClientboundBlockEntityDataPacket
a()
getUpdatePacket()
method_38252()
toUpdatePacket()
public CompoundTag
a(jg$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public boolean
a(cqs arg0)
usedBy(Player arg0)
method_11351(class_1657 arg0)
openScreen(PlayerEntity player)
public String
d()
getStructureName()
method_11362()
getTemplateName()
public boolean
f()
hasStructureName()
method_11384()
hasStructureName()
public void
a(String arg0)
setStructureName(String arg0)
method_11343(String arg0)
setTemplateName(String templateName)
public void
a(ale arg0)
setStructureName(ResourceLocation arg0)
method_11344(class_2960 arg0)
setTemplateName(Identifier templateName)
public void
a(bwz arg0)
createdBy(LivingEntity arg0)
method_11373(class_1309 arg0)
setAuthor(LivingEntity entity)
public BlockPos
j()
getStructurePos()
method_11359()
getOffset()
public void
a(iu arg0)
setStructurePos(BlockPos arg0)
method_11378(class_2338 arg0)
setOffset(BlockPos offset)
public Vec3i
k()
getStructureSize()
method_11349()
getSize()
public void
a(jz arg0)
setStructureSize(Vec3i arg0)
method_11377(class_2382 arg0)
setSize(Vec3i size)
public Mirror
s()
getMirror()
method_11345()
getMirror()
public void
a(dqv arg0)
setMirror(Mirror arg0)
method_11356(class_2415 arg0)
setMirror(BlockMirror mirror)
public Rotation
t()
getRotation()
method_11353()
getRotation()
public void
a(dsm arg0)
setRotation(Rotation arg0)
method_11385(class_2470 arg0)
setRotation(BlockRotation rotation)
public String
u()
getMetaData()
method_11358()
getMetadata()
public void
b(String arg0)
setMetaData(String arg0)
method_11363(String arg0)
setMetadata(String metadata)
public StructureMode
v()
getMode()
method_11374()
getMode()
public void
a(eay arg0)
setMode(StructureMode arg0)
method_11381(class_2776 arg0)
setMode(StructureBlockMode mode)
public boolean
w()
isIgnoreEntities()
method_11367()
shouldIgnoreEntities()
public boolean
x()
isStrict()
method_66477()
isStrict()
public void
a(boolean arg0)
setIgnoreEntities(boolean arg0)
method_11352(boolean arg0)
setIgnoreEntities(boolean ignoreEntities)
public void
b(boolean arg0)
setStrict(boolean arg0)
method_66476(boolean arg0)
setStrict(boolean arg0)
public float
y()
getIntegrity()
method_11346()
getIntegrity()
public void
a(float arg0)
setIntegrity(float arg0)
method_11370(float arg0)
setIntegrity(float integrity)
public long
z()
getSeed()
method_11371()
getSeed()
public void
a(long arg0)
setSeed(long arg0)
method_11382(long arg0)
setSeed(long seed)
public boolean
A()
detectSize()
method_11383()
detectStructureSize()
private Stream<BlockPos>
a(iu arg0, iu arg1)
getRelatedCorners(BlockPos arg0, BlockPos arg1)
method_34276(class_2338 arg0, class_2338 arg1)
streamCornerPos(BlockPos start, BlockPos end)
private static Optional<BoundingBox>
a(iu arg0, Stream<iu> arg1)
calculateEnclosingBoundingBox(BlockPos arg0, Stream<BlockPos> arg1)
method_34277(class_2338 arg0, Stream<class_2338> arg1)
getStructureBox(BlockPos pos, Stream<BlockPos> corners)
public boolean
B()
saveStructure()
method_11365()
saveStructure()
public boolean
c(boolean arg0)
saveStructure(boolean arg0)
method_11366(boolean arg0)
saveStructure(boolean toDisk)
public static boolean
a(aro arg0, ale arg1, iu arg2, jz arg3, boolean arg4, String arg5, boolean arg6)
saveStructure(ServerLevel arg0, ResourceLocation arg1, BlockPos arg2, Vec3i arg3, boolean arg4, String arg5, boolean arg6)
method_66717(class_3218 arg0, class_2960 arg1, class_2338 arg2, class_2382 arg3, boolean arg4, String arg5, boolean arg6)
saveStructure(ServerWorld world, Identifier templateId, BlockPos start, Vec3i size, boolean ignoreEntities, String author, boolean toDisk)
public static RandomSource
b(long arg0)
createRandom(long arg0)
method_20048(long arg0)
createRandom(long seed)
public boolean
a(aro arg0)
placeStructureIfSameSize(ServerLevel arg0)
method_54874(class_3218 arg0)
loadAndTryPlaceStructure(ServerWorld world)
public boolean
b(aro arg0)
loadStructureInfo(ServerLevel arg0)
method_11376(class_3218 arg0)
loadStructure(ServerWorld world)
private void
a(euk arg0)
loadStructureInfo(StructureTemplate arg0)
method_54877(class_3499 arg0)
loadStructure(StructureTemplate template)
public void
c(aro arg0)
placeStructure(ServerLevel arg0)
method_54878(class_3218 arg0)
loadAndPlaceStructure(ServerWorld world)
private StructureTemplate
d(aro arg0)
getStructureTemplate(ServerLevel arg0)
method_54879(class_3218 arg0)
getStructureTemplate(ServerWorld world)
private void
a(aro arg0, euk arg1)
placeStructure(ServerLevel arg0, StructureTemplate arg1)
method_54875(class_3218 arg0, class_3499 arg1)
loadAndPlaceStructure(ServerWorld world, StructureTemplate template)
public void
C()
unloadStructure()
method_11361()
unloadStructure()
public boolean
D()
isStructureLoadable()
method_11372()
isStructureAvailable()
public boolean
E()
isPowered()
method_11354()
isPowered()
public void
d(boolean arg0)
setPowered(boolean arg0)
method_11379(boolean arg0)
setPowered(boolean powered)
public boolean
F()
getShowAir()
method_11375()
shouldShowAir()
public void
e(boolean arg0)
setShowAir(boolean arg0)
method_11347(boolean arg0)
setShowAir(boolean showAir)
public boolean
G()
getShowBoundingBox()
method_11357()
shouldShowBoundingBox()
public void
f(boolean arg0)
setShowBoundingBox(boolean arg0)
method_11360(boolean arg0)
setShowBoundingBox(boolean showBoundingBox)
public BoundingBoxRenderable$Mode
b()
renderMode()
method_66713()
getRenderMode()
public BoundingBoxRenderable$RenderableBox
c()
getRenderableBox()
method_66714()
getStructureBox()