API Surface (2) CubeDeformation extend(final float factor)
CubeDeformation extend(final float factorX, final float factorY, final float factorZ)
Full Source
CubeDeformation.java 31 lines · Minecraft 26.3 · verbatim Copy
1 package net.minecraft.client.model.geom.builders;
2
3 import net.fabricmc.api.EnvType;
4 import net.fabricmc.api.Environment;
5
6 @Environment(EnvType.CLIENT)
7 public class CubeDeformation {
8 public static final CubeDeformation NONE = new CubeDeformation(0.0F);
9 final float growX;
10 final float growY;
11 final float growZ;
12
13 public CubeDeformation(final float growX, final float growY, final float growZ) {
14 this.growX = growX;
15 this.growY = growY;
16 this.growZ = growZ;
17 }
18
19 public CubeDeformation(final float grow) {
20 this(grow, grow, grow);
21 }
22
23 public CubeDeformation extend(final float factor) {
24 return new CubeDeformation(this.growX + factor, this.growY + factor, this.growZ + factor);
25 }
26
27 public CubeDeformation extend(final float factorX, final float factorY, final float factorZ) {
28 return new CubeDeformation(this.growX + factorX, this.growY + factorY, this.growZ + factorZ);
29 }
30 }
31
Decompiled Minecraft 26.3 source of CubeDeformation (net/minecraft/client/model/geom/builders/CubeDeformation.java) with Mojang official mappings, stored verbatim on the site.