public class RenderShape extends MutableWrapped<Shape>
| Modifier and Type | Field and Description |
|---|---|
protected ColorCache |
color |
protected TextureWrapper |
texture |
wrappedBOOLEAN_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 |
|---|
RenderShape(Shape wrapped,
ColorCache color) |
| Modifier and Type | Method and Description |
|---|---|
RenderShape |
copy() |
void |
draw(RenderContext ctx,
Vector3 center) |
static RenderShape |
from(Shape shape) |
static RenderShape |
from(Shape shape,
ColorCache color) |
static RenderShape |
from(Shape shape,
ResourceLocationAPI<?> texture) |
static RenderShape |
from(Shape shape,
ResourceLocationAPI<?> texture,
float alpha) |
static RenderShape |
from(Shape shape,
TextureWrapper texture) |
Vector3 |
getCenterForGroup(Vector3 center) |
double |
getDepth() |
double |
getHeight() |
double |
getWidth() |
void |
onResolutionUpdate(MinecraftWindow window) |
RenderShape |
setColor(ColorCache color) |
void |
setHeight(double height) |
RenderShape |
setTexture(ResourceLocationAPI<?> texture) |
RenderShape |
setTexture(ResourceLocationAPI<?> texture,
float alpha) |
RenderShape |
setTexture(TextureWrapper texture) |
void |
setWidth(double width) |
RenderShape |
setWrapped(Shape shape) |
asOptional, equals, getWrapped, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefaultprotected ColorCache color
protected TextureWrapper texture
public RenderShape(Shape wrapped, ColorCache color)
public static RenderShape from(Shape shape)
public static RenderShape from(Shape shape, ColorCache color)
public static RenderShape from(Shape shape, ResourceLocationAPI<?> texture)
public static RenderShape from(Shape shape, ResourceLocationAPI<?> texture, float alpha)
public static RenderShape from(Shape shape, TextureWrapper texture)
public RenderShape copy()
public void draw(RenderContext ctx, Vector3 center)
public double getDepth()
public double getHeight()
public double getWidth()
public void onResolutionUpdate(MinecraftWindow window)
public RenderShape setColor(ColorCache color)
public void setHeight(double height)
public RenderShape setTexture(ResourceLocationAPI<?> texture)
public RenderShape setTexture(ResourceLocationAPI<?> texture, float alpha)
public RenderShape setTexture(TextureWrapper texture)
public void setWidth(double width)
public RenderShape setWrapped(Shape shape)
setWrapped in class MutableWrapped<Shape>