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 ResourceLocation
atlasLocation
private RenderType
renderType
private ResourceLocation
texture
-
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 ResourceLocation
atlasLocation()
IVertexBuilder
buffer(IRenderTypeBuffer p_229311_1_, java.util.function.Function<ResourceLocation,RenderType> p_229311_2_)
IVertexBuilder
buffer(IRenderTypeBuffer p_241742_1_, java.util.function.Function<ResourceLocation,RenderType> p_241742_2_, boolean p_241742_3_)
boolean
equals(java.lang.Object p_equals_1_)
int
hashCode()
RenderType
renderType(java.util.function.Function<ResourceLocation,RenderType> p_229312_1_)
TextureAtlasSprite
sprite()
ResourceLocation
texture()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-