Upload files to "src/openonyx/render/group_i"
This commit is contained in:
1 parent
8c6508551e
commit
60edf0a6bf
5 files changed
+163
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
// $VF: synthetic class
|
||||
class ChinaHatRendererPart {
|
||||
static {
|
||||
int[] i = new int[HatColorMode.values().length];
|
||||
boolean bl = true;
|
||||
e = i;
|
||||
|
||||
try {
|
||||
e[HatColorMode.STATIC.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError noSuchFieldError2) {
|
||||
}
|
||||
|
||||
try {
|
||||
e[HatColorMode.GRADIENT.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError noSuchFieldError1) {
|
||||
}
|
||||
|
||||
try {
|
||||
e[HatColorMode.RAINBOW.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError noSuchFieldError) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
import net.minecraft.client.renderer.WorldRenderer;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
final class ChinaHatRendererPart2 {
|
||||
private final float h;
|
||||
private final float l;
|
||||
private final float I;
|
||||
private final float d;
|
||||
private final float i;
|
||||
private final double f;
|
||||
private final double H;
|
||||
private final double e;
|
||||
|
||||
private void L(WorldRenderer worldRenderer, float f, float g, float h, int i) {
|
||||
float k;
|
||||
float j = (k = g + this.h) * this.d - hx * this.l;
|
||||
g = k * this.l + hx * this.d;
|
||||
ChinaHatRenderer.L(worldRenderer, this.e + fx * this.i - g * this.I, this.f + j, this.H + fx * this.I + g * this.i, ix);
|
||||
}
|
||||
|
||||
private ChinaHatRendererPart2(HatPose hatPose, Vec3 vec3) {
|
||||
this.e = hatPose.pivot().xCoord - vec3.xCoord;
|
||||
this.f = hatPose.pivot().yCoord - vec3.yCoord;
|
||||
this.H = hatPose.pivot().zCoord - vec3.zCoord;
|
||||
this.h = hatPose.lift();
|
||||
float fx = (float)Math.toRadians(hatPose.pitch());
|
||||
float g = (float)Math.toRadians(hatPose.yaw());
|
||||
this.d = (float)Math.cos(fx);
|
||||
this.l = (float)Math.sin(fx);
|
||||
this.i = (float)Math.cos(g);
|
||||
this.I = (float)Math.sin(g);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
public record ChinaHatStyle(
|
||||
float radius,
|
||||
float height,
|
||||
HatColorMode colors,
|
||||
int color,
|
||||
int secondColor,
|
||||
float colorPhase,
|
||||
float opacity,
|
||||
boolean glow,
|
||||
boolean trail,
|
||||
float trailSpan,
|
||||
float sweep,
|
||||
boolean throughWalls
|
||||
) {
|
||||
public static String decrypt(String string) {
|
||||
String string1 = string;
|
||||
int n = --5 << 3 ^ 7;
|
||||
int o = 3 << 3 ^ 5;
|
||||
int p = 3 << 3 ^ 7;
|
||||
String string2;
|
||||
int q = (string2 = string1).length();
|
||||
char[] d = new char[q];
|
||||
boolean bl = true;
|
||||
int k;
|
||||
int l = k = q - 1;
|
||||
char[] c = d;
|
||||
int j = p;
|
||||
n = l;
|
||||
int i = o;
|
||||
|
||||
while (n >= 0) {
|
||||
o = k;
|
||||
int m = string2.charAt(k);
|
||||
k--;
|
||||
c[o] = (char)(m ^ i);
|
||||
if (k < 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
m = k--;
|
||||
c[m] = (char)(string2.charAt(m) ^ j);
|
||||
n = k;
|
||||
}
|
||||
|
||||
return new String(c);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
public enum HatColorMode {
|
||||
GRADIENT,
|
||||
RAINBOW,
|
||||
STATIC;
|
||||
|
||||
private static HatColorMode[] L() {
|
||||
HatColorMode[] hatColorModes = new HatColorMode[3];
|
||||
boolean bl = true;
|
||||
hatColorModes[0] = STATIC;
|
||||
hatColorModes[1] = GRADIENT;
|
||||
hatColorModes[2] = RAINBOW;
|
||||
return hatColorModes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
public record HatPose(Vec3 pivot, float lift, float yaw, float pitch, float phase) {
|
||||
public static String decrypt(String string) {
|
||||
String string1 = string;
|
||||
int n = --5 << 4 ^ 12;
|
||||
int o = 3 << 3 ^ 2;
|
||||
int p = 80 ^ 1 << 1;
|
||||
String string2;
|
||||
int q = (string2 = string1).length();
|
||||
char[] d = new char[q];
|
||||
boolean bl = true;
|
||||
int k;
|
||||
int l = k = q - 1;
|
||||
char[] c = d;
|
||||
int j = p;
|
||||
n = l;
|
||||
int i = o;
|
||||
|
||||
while (n >= 0) {
|
||||
o = k;
|
||||
int m = string2.charAt(k);
|
||||
k--;
|
||||
c[o] = (char)(m ^ i);
|
||||
if (k < 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
m = k--;
|
||||
c[m] = (char)(string2.charAt(m) ^ j);
|
||||
n = k;
|
||||
}
|
||||
|
||||
return new String(c);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user