Class RenderMaterial
- java.lang.Object
-
- net.minecraft.client.renderer.model.RenderMaterial
-
public class RenderMaterial extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocationatlasLocationprivate RenderTyperenderTypeprivate ResourceLocationtexture
-
Constructor Summary
Constructors Constructor Description RenderMaterial(ResourceLocation p_i226055_1_, ResourceLocation p_i226055_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocationatlasLocation()IVertexBuilderbuffer(IRenderTypeBuffer p_229311_1_, java.util.function.Function<ResourceLocation,RenderType> p_229311_2_)IVertexBuilderbuffer(IRenderTypeBuffer p_241742_1_, java.util.function.Function<ResourceLocation,RenderType> p_241742_2_, boolean p_241742_3_)booleanequals(java.lang.Object p_equals_1_)inthashCode()RenderTyperenderType(java.util.function.Function<ResourceLocation,RenderType> p_229312_1_)TextureAtlasSpritesprite()ResourceLocationtexture()java.lang.StringtoString()
-
-
-
Field Detail
-
atlasLocation
private final ResourceLocation atlasLocation
-
texture
private final ResourceLocation texture
-
renderType
@Nullable private RenderType renderType
-
-
Constructor Detail
-
RenderMaterial
public RenderMaterial(ResourceLocation p_i226055_1_, ResourceLocation p_i226055_2_)
-
-
Method Detail
-
atlasLocation
public ResourceLocation atlasLocation()
-
texture
public ResourceLocation texture()
-
sprite
public TextureAtlasSprite sprite()
-
renderType
public RenderType renderType(java.util.function.Function<ResourceLocation,RenderType> p_229312_1_)
-
buffer
public IVertexBuilder buffer(IRenderTypeBuffer p_229311_1_, java.util.function.Function<ResourceLocation,RenderType> p_229311_2_)
-
buffer
public IVertexBuilder buffer(IRenderTypeBuffer p_241742_1_, java.util.function.Function<ResourceLocation,RenderType> p_241742_2_, boolean p_241742_3_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-