Class DioMultipartBlockStateBuilder
java.lang.Object
fr.alasdiablo.diolib.api.data.blockstate.DioMultipartBlockStateBuilder
- All Implemented Interfaces:
net.minecraftforge.client.model.generators.IGeneratedBlockState
public class DioMultipartBlockStateBuilder
extends Object
implements net.minecraftforge.client.model.generators.IGeneratedBlockState
Class used to create multiple part block-state
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn) voidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn) voidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean north, boolean east, boolean south, boolean west) voidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, boolean north, boolean east, boolean south, boolean west) voidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, int xIn, int yIn) voidaddMultipart(@NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, int xIn, int yIn, boolean north, boolean east, boolean south, boolean west) @NotNull com.google.gson.JsonObjecttoJson()
-
Constructor Details
-
DioMultipartBlockStateBuilder
public DioMultipartBlockStateBuilder()
-
-
Method Details
-
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn) - Parameters:
modelPathIn- Resource location of the model
-
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn) - Parameters:
modelPathIn- Resource location of the modeluvLockIn- Model is uv lock
-
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, int xIn, int yIn) -
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean north, boolean east, boolean south, boolean west) -
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, boolean north, boolean east, boolean south, boolean west) -
addMultipart
public void addMultipart(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelPathIn, boolean uvLockIn, int xIn, int yIn, boolean north, boolean east, boolean south, boolean west) -
toJson
@NotNull public @NotNull com.google.gson.JsonObject toJson()- Specified by:
toJsonin interfacenet.minecraftforge.client.model.generators.IGeneratedBlockState
-