Class UnbakedElementsHelper
java.lang.Object
de.cech12.bucketlib.client.model.neoforge.UnbakedElementsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.resources.model.geometry.QuadCollectionbakeItemMaskQuads(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.
-
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.NORTHandDirection.SOUTHfaces take up only the pixels the mask texture uses.
-