Class Multipart
- java.lang.Object
-
- net.minecraft.client.renderer.model.multipart.Multipart
-
- All Implemented Interfaces:
IUnbakedModel
,IForgeUnbakedModel
public class Multipart extends java.lang.Object implements IUnbakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Multipart.Deserializer
-
Field Summary
Fields Modifier and Type Field Description private StateContainer<Block,BlockState>
definition
private java.util.List<Selector>
selectors
-
Constructor Summary
Constructors Constructor Description Multipart(StateContainer<Block,BlockState> p_i49524_1_, java.util.List<Selector> p_i49524_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
bake(ModelBakery p_225613_1_, java.util.function.Function<RenderMaterial,TextureAtlasSprite> p_225613_2_, IModelTransform p_225613_3_, ResourceLocation p_225613_4_)
boolean
equals(java.lang.Object p_equals_1_)
java.util.Collection<ResourceLocation>
getDependencies()
java.util.Collection<RenderMaterial>
getMaterials(java.util.function.Function<ResourceLocation,IUnbakedModel> p_225614_1_, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> p_225614_2_)
java.util.Set<VariantList>
getMultiVariants()
java.util.List<Selector>
getSelectors()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeUnbakedModel
getClip
-
-
-
-
Field Detail
-
definition
private final StateContainer<Block,BlockState> definition
-
selectors
private final java.util.List<Selector> selectors
-
-
Constructor Detail
-
Multipart
public Multipart(StateContainer<Block,BlockState> p_i49524_1_, java.util.List<Selector> p_i49524_2_)
-
-
Method Detail
-
getSelectors
public java.util.List<Selector> getSelectors()
-
getMultiVariants
public java.util.Set<VariantList> getMultiVariants()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getDependencies
public java.util.Collection<ResourceLocation> getDependencies()
- Specified by:
getDependencies
in interfaceIUnbakedModel
-
getMaterials
public java.util.Collection<RenderMaterial> getMaterials(java.util.function.Function<ResourceLocation,IUnbakedModel> p_225614_1_, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> p_225614_2_)
- Specified by:
getMaterials
in interfaceIUnbakedModel
-
bake
@Nullable public IBakedModel bake(ModelBakery p_225613_1_, java.util.function.Function<RenderMaterial,TextureAtlasSprite> p_225613_2_, IModelTransform p_225613_3_, ResourceLocation p_225613_4_)
- Specified by:
bake
in interfaceIUnbakedModel
-
-