Class JigsawBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.JigsawBlockEntity
- All Implemented Interfaces:
IAttachmentHolder,IBlockEntityExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElementNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static final intprivate static final intstatic final ResourceLocationstatic final Stringprivate Stringprivate JigsawBlockEntity.JointTypestatic final Stringprivate ResourceLocationstatic final Stringstatic final Stringprivate intprivate ResourceKey<StructureTemplatePool> static final Stringstatic final com.mojang.serialization.Codec<ResourceKey<StructureTemplatePool>> static final Stringprivate intprivate ResourceLocationstatic final StringFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(ServerLevel pLevel, int pMaxDepth, boolean pKeepJigsaws) getJoint()getName()intgetPool()intgetUpdateTag(HolderLookup.Provider pRegistries) protected voidloadAdditional(ValueInput pInput) protected voidsaveAdditional(ValueOutput pOutput) voidsetFinalState(String pFinalState) voidsetJoint(JigsawBlockEntity.JointType pJoint) voidsetName(ResourceLocation pName) voidsetPlacementPriority(int pPlacementPriority) voidsetPool(ResourceKey<StructureTemplatePool> pPool) voidsetSelectionPriority(int pSelectionPriority) voidsetTarget(ResourceLocation pTarget) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
POOL_CODEC
-
EMPTY_ID
-
DEFAULT_PLACEMENT_PRIORITY
private static final int DEFAULT_PLACEMENT_PRIORITY- See Also:
-
DEFAULT_SELECTION_PRIORITY
private static final int DEFAULT_SELECTION_PRIORITY- See Also:
-
TARGET
- See Also:
-
POOL
- See Also:
-
JOINT
- See Also:
-
PLACEMENT_PRIORITY
- See Also:
-
SELECTION_PRIORITY
- See Also:
-
NAME
- See Also:
-
FINAL_STATE
- See Also:
-
DEFAULT_FINAL_STATE
- See Also:
-
name
-
target
-
pool
-
joint
-
finalState
-
placementPriority
private int placementPriority -
selectionPriority
private int selectionPriority
-
-
Constructor Details
-
JigsawBlockEntity
-
-
Method Details
-
getName
-
getTarget
-
getPool
-
getFinalState
-
getJoint
-
getPlacementPriority
public int getPlacementPriority() -
getSelectionPriority
public int getSelectionPriority() -
setName
-
setTarget
-
setPool
-
setFinalState
-
setJoint
-
setPlacementPriority
public void setPlacementPriority(int pPlacementPriority) -
setSelectionPriority
public void setSelectionPriority(int pSelectionPriority) -
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
generate
-