Class UnbakedElementsHelper

java.lang.Object
de.cech12.bucketlib.client.model.neoforge.UnbakedElementsHelper

public class UnbakedElementsHelper extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.resources.model.geometry.QuadCollection
    bakeItemMaskQuads(net.minecraft.client.resources.model.ModelBaker baker, int layerIndex, net.minecraft.client.resources.model.sprite.Material.Baked maskMaterial, net.minecraft.client.resources.model.sprite.Material.Baked outputMaterial, net.minecraft.client.renderer.block.dispatch.ModelState modelState, UnaryOperator<net.minecraft.client.resources.model.geometry.BakedQuad.MaterialInfo> materialModifier)
    Bakes quads in the shape of the specified mask texture with the specified output texture applied to them.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bakeItemMaskQuads

      public static net.minecraft.client.resources.model.geometry.QuadCollection bakeItemMaskQuads(net.minecraft.client.resources.model.ModelBaker baker, int layerIndex, net.minecraft.client.resources.model.sprite.Material.Baked maskMaterial, net.minecraft.client.resources.model.sprite.Material.Baked outputMaterial, net.minecraft.client.renderer.block.dispatch.ModelState modelState, UnaryOperator<net.minecraft.client.resources.model.geometry.BakedQuad.MaterialInfo> materialModifier)
      Bakes quads in the shape of the specified mask texture with the specified output texture applied to them.

      The Direction.NORTH and Direction.SOUTH faces take up only the pixels the mask texture uses.