Package net.minecraftforge.client.model
Class ItemMultiLayerBakedModel.Builder
- java.lang.Object
-
- net.minecraftforge.client.model.ItemMultiLayerBakedModel.Builder
-
- Enclosing class:
- ItemMultiLayerBakedModel
public static class ItemMultiLayerBakedModel.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
builder
private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
cameraTransforms
private RenderType
lastRt
private ItemOverrideList
overrides
private IModelConfiguration
owner
private TextureAtlasSprite
particle
private java.util.List<BakedQuad>
quads
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder(IModelConfiguration owner, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addLayer(com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> builder, java.util.List<BakedQuad> quads, RenderType rt)
ItemMultiLayerBakedModel.Builder
addQuads(RenderType rt, java.util.Collection<BakedQuad> quadsToAdd)
ItemMultiLayerBakedModel.Builder
addQuads(RenderType rt, BakedQuad... quadsToAdd)
IBakedModel
build()
private void
flushQuads(RenderType rt)
ItemMultiLayerBakedModel.Builder
setParticle(TextureAtlasSprite particleSprite)
-
-
-
Field Detail
-
builder
private final com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> builder
-
quads
private final java.util.List<BakedQuad> quads
-
overrides
private final ItemOverrideList overrides
-
cameraTransforms
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms
-
owner
private final IModelConfiguration owner
-
particle
private TextureAtlasSprite particle
-
lastRt
private RenderType lastRt
-
-
Constructor Detail
-
Builder
private Builder(IModelConfiguration owner, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
-
-
Method Detail
-
addLayer
private void addLayer(com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> builder, java.util.List<BakedQuad> quads, RenderType rt)
-
flushQuads
private void flushQuads(RenderType rt)
-
setParticle
public ItemMultiLayerBakedModel.Builder setParticle(TextureAtlasSprite particleSprite)
-
addQuads
public ItemMultiLayerBakedModel.Builder addQuads(RenderType rt, BakedQuad... quadsToAdd)
-
addQuads
public ItemMultiLayerBakedModel.Builder addQuads(RenderType rt, java.util.Collection<BakedQuad> quadsToAdd)
-
build
public IBakedModel build()
-
-