public class ShapeWidget extends Widget implements Wrapped<RenderShape>
| Modifier and Type | Field and Description |
|---|---|
protected RenderShape |
shape |
height, parent, visible, width, x, yBOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER| Constructor and Description |
|---|
ShapeWidget(RenderShape shape,
double x,
double y) |
| Modifier and Type | Method and Description |
|---|---|
ShapeWidget |
copy() |
void |
draw(RenderContext ctx,
Vector3 center,
double mouseX,
double mouseY) |
static ShapeWidget |
from(double sideLength) |
static ShapeWidget |
from(double width,
double height) |
static ShapeWidget |
from(double sideLength,
double x,
double y) |
static ShapeWidget |
from(double width,
double height,
double x,
double y) |
static ShapeWidget |
from(Shape shape) |
static ShapeWidget |
from(Shape shape,
ColorCache color) |
static ShapeWidget |
from(Shape shape,
ColorCache color,
double x,
double y) |
static ShapeWidget |
from(Shape shape,
double x,
double y) |
static ShapeWidget |
from(Shape shape,
ResourceLocationAPI<?> texture) |
static ShapeWidget |
from(Shape shape,
ResourceLocationAPI<?> texture,
double x,
double y) |
static ShapeWidget |
from(Shape shape,
ResourceLocationAPI<?> texture,
float alpha) |
static ShapeWidget |
from(Shape shape,
ResourceLocationAPI<?> texture,
float alpha,
double x,
double y) |
static ShapeWidget |
from(Shape shape,
TextureWrapper texture) |
static ShapeWidget |
from(Shape shape,
TextureWrapper texture,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape) |
static ShapeWidget |
fuzz(Shape shape,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
int max) |
static ShapeWidget |
fuzz(Shape shape,
int max,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount,
float minWidth,
float maxWidth) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount,
float minWidth,
float maxWidth,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount,
float minWidth,
float maxWidth,
java.util.function.Supplier<ColorCache> color) |
static ShapeWidget |
fuzz(Shape shape,
int minCount,
int maxCount,
float minWidth,
float maxWidth,
java.util.function.Supplier<ColorCache> color,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts,
Vector2 widths) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts,
Vector2 widths,
double x,
double y) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts,
Vector2 widths,
java.util.function.Supplier<ColorCache> color) |
static ShapeWidget |
fuzz(Shape shape,
Vector2 counts,
Vector2 widths,
java.util.function.Supplier<ColorCache> color,
double x,
double y) |
Vector3 |
getCenterForGroup(Vector3 center) |
double |
getHeight() |
double |
getWidth() |
RenderShape |
getWrapped() |
boolean |
isInside(double x,
double y,
double z) |
static ShapeWidget |
of(RenderShape shape) |
static ShapeWidget |
of(RenderShape shape,
double x,
double y) |
void |
onResolutionUpdated(MinecraftWindow window) |
static ShapeWidget |
outlineFrom(double sideLength) |
static ShapeWidget |
outlineFrom(double width,
double height) |
static ShapeWidget |
outlineFrom(double sideLength,
double x,
double y) |
static ShapeWidget |
outlineFrom(double width,
double height,
double x,
double y) |
static ShapeWidget |
outlineFrom(Shape shape) |
static ShapeWidget |
outlineFrom(Shape shape,
ColorCache color) |
static ShapeWidget |
outlineFrom(Shape shape,
ColorCache color,
double x,
double y) |
static ShapeWidget |
outlineFrom(Shape shape,
ColorCache color,
float width) |
static ShapeWidget |
outlineFrom(Shape shape,
ColorCache color,
float width,
double x,
double y) |
static ShapeWidget |
outlineFrom(Shape shape,
double x,
double y) |
static ShapeWidget |
outlineFrom(Shape shape,
float width) |
static ShapeWidget |
outlineFrom(Shape shape,
float width,
double x,
double y) |
static ShapeWidget |
outlineOf(RenderShape shape) |
static ShapeWidget |
outlineOf(RenderShape shape,
double x,
double y) |
static ShapeWidget |
outlineOf(RenderShape shape,
float width) |
static ShapeWidget |
outlineOf(RenderShape shape,
float width,
double x,
double y) |
void |
setColor(ColorCache color) |
void |
setHeight(double height) |
void |
setTexture(TextureWrapper texture) |
void |
setWidth(double width) |
canDraw, copyBasic, getBottom, getCenter, getCenter, getCenter, getLeft, getRight, getTop, getX, getY, isVisible, onScreenClosed, onScreenOpenedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefaultprotected RenderShape shape
public ShapeWidget(RenderShape shape, double x, double y)
public static ShapeWidget from(double sideLength)
public static ShapeWidget from(double width, double height)
public static ShapeWidget from(double sideLength, double x, double y)
public static ShapeWidget from(double width, double height, double x, double y)
public static ShapeWidget from(Shape shape)
public static ShapeWidget from(Shape shape, double x, double y)
public static ShapeWidget from(Shape shape, ColorCache color)
public static ShapeWidget from(Shape shape, ColorCache color, double x, double y)
public static ShapeWidget from(Shape shape, ResourceLocationAPI<?> texture)
public static ShapeWidget from(Shape shape, ResourceLocationAPI<?> texture, double x, double y)
public static ShapeWidget from(Shape shape, ResourceLocationAPI<?> texture, float alpha)
public static ShapeWidget from(Shape shape, ResourceLocationAPI<?> texture, float alpha, double x, double y)
public static ShapeWidget from(Shape shape, TextureWrapper texture)
public static ShapeWidget from(Shape shape, TextureWrapper texture, double x, double y)
public static ShapeWidget fuzz(Shape shape)
public static ShapeWidget fuzz(Shape shape, double x, double y)
public static ShapeWidget fuzz(Shape shape, int max)
public static ShapeWidget fuzz(Shape shape, int max, double x, double y)
public static ShapeWidget fuzz(Shape shape, Vector2 counts)
public static ShapeWidget fuzz(Shape shape, Vector2 counts, double x, double y)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount, double x, double y)
public static ShapeWidget fuzz(Shape shape, Vector2 counts, Vector2 widths)
public static ShapeWidget fuzz(Shape shape, Vector2 counts, Vector2 widths, double x, double y)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount, float minWidth, float maxWidth)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount, float minWidth, float maxWidth, double x, double y)
public static ShapeWidget fuzz(Shape shape, Vector2 counts, Vector2 widths, java.util.function.Supplier<ColorCache> color)
public static ShapeWidget fuzz(Shape shape, Vector2 counts, Vector2 widths, java.util.function.Supplier<ColorCache> color, double x, double y)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount, float minWidth, float maxWidth, java.util.function.Supplier<ColorCache> color)
public static ShapeWidget fuzz(Shape shape, int minCount, int maxCount, float minWidth, float maxWidth, java.util.function.Supplier<ColorCache> color, double x, double y)
public static ShapeWidget of(RenderShape shape)
public static ShapeWidget of(RenderShape shape, double x, double y)
public static ShapeWidget outlineFrom(double sideLength)
public static ShapeWidget outlineFrom(double width, double height)
public static ShapeWidget outlineFrom(double sideLength, double x, double y)
public static ShapeWidget outlineFrom(double width, double height, double x, double y)
public static ShapeWidget outlineFrom(Shape shape)
public static ShapeWidget outlineFrom(Shape shape, double x, double y)
public static ShapeWidget outlineFrom(Shape shape, float width)
public static ShapeWidget outlineFrom(Shape shape, float width, double x, double y)
public static ShapeWidget outlineFrom(Shape shape, ColorCache color)
public static ShapeWidget outlineFrom(Shape shape, ColorCache color, double x, double y)
public static ShapeWidget outlineFrom(Shape shape, ColorCache color, float width)
public static ShapeWidget outlineFrom(Shape shape, ColorCache color, float width, double x, double y)
public static ShapeWidget outlineOf(RenderShape shape)
public static ShapeWidget outlineOf(RenderShape shape, double x, double y)
public static ShapeWidget outlineOf(RenderShape shape, float width)
public static ShapeWidget outlineOf(RenderShape shape, float width, double x, double y)
public ShapeWidget copy()
public void draw(RenderContext ctx, Vector3 center, double mouseX, double mouseY)
public double getHeight()
public double getWidth()
public void onResolutionUpdated(MinecraftWindow window)
onResolutionUpdated in class Widgetpublic RenderShape getWrapped()
getWrapped in interface Wrapped<RenderShape>public boolean isInside(double x,
double y,
double z)
public void setColor(ColorCache color)
public void setHeight(double height)
public void setWidth(double width)
public void setTexture(TextureWrapper texture)