类 UnbakedGeometryHelper

java.lang.Object
net.minecraftforge.client.model.geometry.UnbakedGeometryHelper

@Internal public class UnbakedGeometryHelper extends Object
Helper for dealing with unbaked models and geometries.
  • 字段详细资料

    • FACE_BAKERY

      private static final FaceBakery FACE_BAKERY
    • FILESYSTEM_PATH_TO_RESLOC

      private static final Pattern FILESYSTEM_PATH_TO_RESLOC
      Explanation: This takes anything that looks like a valid resourcepack texture location, and tries to extract a resourcelocation out of it. 1. it will ignore anything up to and including an /assets/ folder, 2. it will take the next path component as a namespace, 3. it will match but skip the /textures/ part of the path, 4. it will take the rest of the path up to but excluding the .png extension as the resource path It's a best-effort situation, to allow model files exported by modelling software to be used without post-processing. Example: C:\Something\Or Other\src\main\resources\assets\mymodid\textures\item\my_thing.png ........................................--------_______----------_____________---- Result after replacing '\' to '/': mymodid:item/my_thing
    • ITEM_MODEL_GENERATOR

      private static final ItemModelGenerator ITEM_MODEL_GENERATOR
  • 构造器详细资料

    • UnbakedGeometryHelper

      public UnbakedGeometryHelper()
  • 方法详细资料