public class JigsawBlockEntity extends BlockEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
JigsawBlockEntity.Joint |
| Modifier and Type | Field and Description |
|---|---|
private String |
finalState |
private JigsawBlockEntity.Joint |
joint |
private Identifier |
name |
private Identifier |
pool |
private Identifier |
target |
pos, removed, world| Constructor and Description |
|---|
JigsawBlockEntity() |
JigsawBlockEntity(BlockEntityType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromTag(BlockState state,
CompoundTag tag) |
void |
generate(ServerWorld world,
int maxDepth,
boolean keepJigsaws) |
String |
getFinalState() |
JigsawBlockEntity.Joint |
getJoint() |
Identifier |
getName() |
Identifier |
getPool() |
Identifier |
getTarget() |
void |
setAttachmentType(Identifier value) |
void |
setFinalState(String finalState) |
void |
setJoint(JigsawBlockEntity.Joint joint) |
void |
setPool(Identifier pool) |
void |
setTargetPool(Identifier target) |
CompoundTag |
toInitialChunkDataTag() |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPosprivate Identifier name
private Identifier target
private Identifier pool
private JigsawBlockEntity.Joint joint
private String finalState
public JigsawBlockEntity(BlockEntityType<?> type)
public JigsawBlockEntity()
@Environment(value=CLIENT) public Identifier getName()
@Environment(value=CLIENT) public Identifier getTarget()
@Environment(value=CLIENT) public Identifier getPool()
@Environment(value=CLIENT) public String getFinalState()
@Environment(value=CLIENT) public JigsawBlockEntity.Joint getJoint()
public void setAttachmentType(Identifier value)
public void setTargetPool(Identifier target)
public void setPool(Identifier pool)
public void setFinalState(String finalState)
public void setJoint(JigsawBlockEntity.Joint joint)
public CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntitypublic void fromTag(BlockState state, CompoundTag tag)
fromTag in class BlockEntity@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket in class BlockEntitypublic CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag in class BlockEntitypublic void generate(ServerWorld world, int maxDepth, boolean keepJigsaws)