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) createPartClient(codechicken.lib.data.MCDataInput packet) Called to create aMultiPartinstance from the providedMCDataInput.@Nullable MicroblockPartcreatePartServer(net.minecraft.world.level.storage.ValueInput input) Called to create aMultiPartinstance on the server side from aValueInputtag.abstract floatMethods inherited from class codechicken.multipart.api.MultipartType
getRegistryName, TYPE_CODEC
-
Constructor Details
-
MicroblockPartFactory
public MicroblockPartFactory()
-
-
Method Details
-
create
-
createPartServer
@Nullable public @Nullable MicroblockPart createPartServer(net.minecraft.world.level.storage.ValueInput input) Description copied from class:MultipartTypeCalled to create aMultiPartinstance on the server side from aValueInputtag. This is called when the MultiPart is loaded from disk.- Specified by:
createPartServerin classMultipartType<MicroblockPart>- Parameters:
input- TheValueInputto 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()
-