Package info.u_team.u_team_core.util
Class ModelUtil
java.lang.Object
info.u_team.u_team_core.util.ModelUtil
Utility methods for interaction with
All methods should be called in the
ModelBakery
private methods.All methods should be called in the
FMLClientSetupEvent
event with
ParallelDispatchEvent.enqueueWork(Runnable)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Utility class for an empty state definition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCustomStateContainer
(net.minecraft.resources.ResourceLocation location, net.minecraft.world.level.block.state.StateDefinition<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> definition) Replace the default state definition with a custom one.static void
addTexture
(net.minecraft.client.resources.model.Material material) AddMaterial
to be loaded to the atlas texture and stitched.
-
Constructor Details
-
ModelUtil
public ModelUtil()
-
-
Method Details
-
addCustomStateContainer
public static void addCustomStateContainer(net.minecraft.resources.ResourceLocation location, net.minecraft.world.level.block.state.StateDefinition<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> definition) Replace the default state definition with a custom one. Can remove or add states for the model- Parameters:
location
- Resource location of the modeldefinition
- Custom state definition
-
addTexture
public static void addTexture(net.minecraft.client.resources.model.Material material) AddMaterial
to be loaded to the atlas texture and stitched.- Parameters:
material
- Render Material
-