public class ShapeProperties
extends java.lang.Object
Setters use the Builder pattern so they can be chained.
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeProperties.StrokePosition |
| Constructor and Description |
|---|
ShapeProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getFillColor()
Gets stroke Color.
|
float |
getFillOpacity()
Gets fill opacity.
|
@Nullable com.mojang.blaze3d.platform.NativeImage |
getImage()
Gets the image, if there is one.
|
@Nullable net.minecraft.resources.ResourceLocation |
getImageLocation()
Gets the image location, if there is one.
|
int |
getStrokeColor()
Gets the stroke color.
|
float |
getStrokeOpacity()
Gets stroke opacity.
|
ShapeProperties.StrokePosition |
getStrokePosition()
Gets the stroke position.
|
float |
getStrokeWidth()
Gets the stroke width.
|
double |
getTexturePositionX()
Gets texture position x.
|
double |
getTexturePositionY()
Gets texture position y.
|
double |
getTextureScaleX()
Gets texture scale x.
|
double |
getTextureScaleY()
Gets texture scale y.
|
int |
hashCode() |
ShapeProperties |
setFillColor(int fillColor)
Sets fill color.
|
ShapeProperties |
setFillOpacity(float fillOpacity)
Sets fillOpacity.
|
ShapeProperties |
setImage(com.mojang.blaze3d.platform.NativeImage image)
Sets the image.
|
ShapeProperties |
setImageLocation(net.minecraft.resources.ResourceLocation imageLocation)
Sets the image location.
|
ShapeProperties |
setStrokeColor(int strokeColor)
Sets the stroke Color (rgb).
|
ShapeProperties |
setStrokeOpacity(float strokeOpacity)
Sets stroke opacity.
|
ShapeProperties |
setStrokePosition(ShapeProperties.StrokePosition strokePosition)
Sets the stroke position.
|
ShapeProperties |
setStrokeWidth(float strokeWidth)
Sets the stroke width.
|
ShapeProperties |
setTexturePositionX(double texturePositionX)
Sets texture position x.
|
ShapeProperties |
setTexturePositionY(double texturePositionY)
Sets texture position y.
|
ShapeProperties |
setTextureScaleX(double textureScaleX)
Sets texture scale x.
|
ShapeProperties |
setTextureScaleY(double textureScaleY)
Sets texture scale y.
|
java.lang.String |
toString() |
public int getStrokeColor()
public ShapeProperties setStrokeColor(int strokeColor)
strokeColor - rgbpublic int getFillColor()
public ShapeProperties setFillColor(int fillColor)
fillColor - the fill colorpublic float getStrokeOpacity()
public ShapeProperties setStrokeOpacity(float strokeOpacity)
strokeOpacity - the stroke opacitypublic float getFillOpacity()
public ShapeProperties setFillOpacity(float fillOpacity)
fillOpacity - the fillOpacitypublic float getStrokeWidth()
public ShapeProperties setStrokeWidth(float strokeWidth)
strokeWidth - widthpublic ShapeProperties.StrokePosition getStrokePosition()
public ShapeProperties setStrokePosition(ShapeProperties.StrokePosition strokePosition)
strokePosition - position@Nullable public @Nullable com.mojang.blaze3d.platform.NativeImage getImage()
public ShapeProperties setImage(com.mojang.blaze3d.platform.NativeImage image)
image - the image@Nullable public @Nullable net.minecraft.resources.ResourceLocation getImageLocation()
public ShapeProperties setImageLocation(net.minecraft.resources.ResourceLocation imageLocation)
imageLocation - the image locationpublic double getTexturePositionX()
public ShapeProperties setTexturePositionX(double texturePositionX)
texturePositionX - the texture position xpublic double getTexturePositionY()
public ShapeProperties setTexturePositionY(double texturePositionY)
texturePositionY - the texture position ypublic double getTextureScaleX()
public ShapeProperties setTextureScaleX(double textureScaleX)
textureScaleX - the texture scale xpublic double getTextureScaleY()
public ShapeProperties setTextureScaleY(double textureScaleY)
textureScaleY - the texture scale ypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object