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(BlockPos blockPos,
BlockState blockState) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromTag(CompoundTag compoundTag) |
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() |
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorldprivate Identifier name
private Identifier target
private Identifier pool
private JigsawBlockEntity.Joint joint
private String finalState
public JigsawBlockEntity(BlockPos blockPos, BlockState blockState)
@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(CompoundTag compoundTag)
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)