Package codechicken.microblock.part
Class MicroblockPartFactory
java.lang.Object
codechicken.multipart.api.MultipartType<MicroblockPart>
codechicken.microblock.part.MicroblockPartFactory
- Direct Known Subclasses:
PostMicroblockFactory,StandardMicroFactory
Created by covers1624 on 26/6/22.
-
Field Summary
Fields inherited from class codechicken.multipart.api.MultipartType
MULTIPART_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MicroblockPartcreate(boolean client, MicroMaterial material) @NotNull MicroblockPartcreatePartClient(codechicken.lib.data.MCDataInput packet) Called to create aMultiPartinstance from the providedMCDataInput.@Nullable MicroblockPartcreatePartServer(net.minecraft.nbt.CompoundTag tag) Called to create aMultiPartinstance on the server side from aCompoundTagtag.abstract floatMethods inherited from class codechicken.multipart.api.MultipartType
getRegistryName
-
Constructor Details
-
MicroblockPartFactory
public MicroblockPartFactory()
-
-
Method Details
-
create
-
createPartServer
Description copied from class:MultipartTypeCalled to create aMultiPartinstance on the server side from aCompoundTagtag. This is called when the MultiPart is loaded from disk.- Specified by:
createPartServerin classMultipartType<MicroblockPart>- Parameters:
tag- TheCompoundTagto load from.- Returns:
- The
MultiPartinstance, ornullto discard.
-
createPartClient
Description copied from class:MultipartTypeCalled to create aMultiPartinstance from the providedMCDataInput.The supplied packet comes from
MultiPart.writeDesc(codechicken.lib.data.MCDataOutput)- Specified by:
createPartClientin classMultipartType<MicroblockPart>- Parameters:
packet- The packet.- Returns:
- The client-side part.
-
getResistanceFactor
public abstract float getResistanceFactor()
-