Class ModelUtil

java.lang.Object
info.u_team.u_team_core.util.ModelUtil

public class ModelUtil extends Object
Utility methods for interaction with ModelBakery private methods.
All methods should be called in the FMLClientSetupEvent event with ParallelDispatchEvent.enqueueWork(Runnable)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Utility class for an empty state definition
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static void
    addTexture(net.minecraft.client.resources.model.Material material)
    Add Material to be loaded to the atlas texture and stitched.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 model
      definition - Custom state definition
    • addTexture

      public static void addTexture(net.minecraft.client.resources.model.Material material)
      Add Material to be loaded to the atlas texture and stitched.
      Parameters:
      material - Render Material