Package journeymap.api.v2.client.model
Class ShapeProperties
java.lang.Object
journeymap.api.v2.client.model.ShapeProperties
Properties defining the display of a shape.
Setters use the Builder pattern so they can be chained.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets stroke Color.floatGets fill opacity.@Nullable com.mojang.blaze3d.platform.NativeImagegetImage()Gets the image, if there is one.@Nullable net.minecraft.resources.ResourceLocationGets the image location, if there is one.intGets the stroke color.floatGets stroke opacity.floatGets the stroke width.doubleGets texture position x.doubleGets texture position y.doubleGets texture scale x.doubleGets texture scale y.inthashCode()setFillColor(int fillColor) Sets fill color.setFillOpacity(float fillOpacity) Sets fillOpacity.setImage(com.mojang.blaze3d.platform.NativeImage image) Sets the image.setImageLocation(net.minecraft.resources.ResourceLocation imageLocation) Sets the image location.setStrokeColor(int strokeColor) Sets the stroke Color (rgb).setStrokeOpacity(float strokeOpacity) Sets stroke opacity.setStrokeWidth(float strokeWidth) Sets the stroke width.setTexturePositionX(double texturePositionX) Sets texture position x.setTexturePositionY(double texturePositionY) Sets texture position y.setTextureScaleX(double textureScaleX) Sets texture scale x.setTextureScaleY(double textureScaleY) Sets texture scale y.toString()
-
Constructor Details
-
ShapeProperties
public ShapeProperties()
-
-
Method Details
-
getStrokeColor
public int getStrokeColor()Gets the stroke color.- Returns:
- rgb strokeColor
-
setStrokeColor
Sets the stroke Color (rgb). Range is 0x000000 - 0xffffff.- Parameters:
strokeColor- rgb- Returns:
- this
-
getFillColor
public int getFillColor()Gets stroke Color. Range is 0x000000 - 0xffffff.- Returns:
- the fill color
-
setFillColor
Sets fill color. Range is 0x000000 - 0xffffff.- Parameters:
fillColor- the fill color- Returns:
- this
-
getStrokeOpacity
public float getStrokeOpacity()Gets stroke opacity. Range is 0f - 1f.- Returns:
- the stroke opacity
-
setStrokeOpacity
Sets stroke opacity. Range is 0f - 1f.- Parameters:
strokeOpacity- the stroke opacity- Returns:
- this
-
getFillOpacity
public float getFillOpacity()Gets fill opacity. Range is 0f - 1f.- Returns:
- the fill opacity
-
setFillOpacity
Sets fillOpacity. Range is 0f - 1f.- Parameters:
fillOpacity- the fillOpacity- Returns:
- this
-
getStrokeWidth
public float getStrokeWidth()Gets the stroke width.- Returns:
- width
-
setStrokeWidth
Sets the stroke width.- Parameters:
strokeWidth- width- Returns:
- this
-
getImage
@Nullable public @Nullable com.mojang.blaze3d.platform.NativeImage getImage()Gets the image, if there is one.- Returns:
- the image
-
setImage
Sets the image.- Parameters:
image- the image- Returns:
- this
-
getImageLocation
@Nullable public @Nullable net.minecraft.resources.ResourceLocation getImageLocation()Gets the image location, if there is one.- Returns:
- the location
-
setImageLocation
Sets the image location.- Parameters:
imageLocation- the image location- Returns:
- this
-
getTexturePositionX
public double getTexturePositionX()Gets texture position x.- Returns:
- the texture position x
-
setTexturePositionX
Sets texture position x.- Parameters:
texturePositionX- the texture position x- Returns:
- this
-
getTexturePositionY
public double getTexturePositionY()Gets texture position y.- Returns:
- the texture position y
-
setTexturePositionY
Sets texture position y.- Parameters:
texturePositionY- the texture position y- Returns:
- this
-
getTextureScaleX
public double getTextureScaleX()Gets texture scale x.- Returns:
- the texture scale x
-
setTextureScaleX
Sets texture scale x.- Parameters:
textureScaleX- the texture scale x- Returns:
- this
-
getTextureScaleY
public double getTextureScaleY()Gets texture scale y.- Returns:
- the texture scale y
-
setTextureScaleY
Sets texture scale y.- Parameters:
textureScaleY- the texture scale y- Returns:
- this
-
equals
-
hashCode
public int hashCode() -
toString
-