public class Material
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
atlasLocation |
private RenderType |
renderType |
private ResourceLocation |
textureLocation |
Constructor and Description |
---|
Material(ResourceLocation atlasLocationIn,
ResourceLocation textureLocationIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
ResourceLocation |
getAtlasLocation() |
IVertexBuilder |
getBuffer(IRenderTypeBuffer bufferIn,
java.util.function.Function<ResourceLocation,RenderType> renderTypeGetter) |
RenderType |
getRenderType(java.util.function.Function<ResourceLocation,RenderType> renderTypeGetter) |
TextureAtlasSprite |
getSprite() |
ResourceLocation |
getTextureLocation() |
int |
hashCode() |
java.lang.String |
toString() |
private final ResourceLocation atlasLocation
private final ResourceLocation textureLocation
@Nullable private RenderType renderType
public Material(ResourceLocation atlasLocationIn, ResourceLocation textureLocationIn)
public ResourceLocation getAtlasLocation()
public ResourceLocation getTextureLocation()
public TextureAtlasSprite getSprite()
public RenderType getRenderType(java.util.function.Function<ResourceLocation,RenderType> renderTypeGetter)
public IVertexBuilder getBuffer(IRenderTypeBuffer bufferIn, java.util.function.Function<ResourceLocation,RenderType> renderTypeGetter)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object