Entity#getModel

This commit is contained in:
thedaneeffect committed 2021-03-09 14:39:48 -05:00
1 parent 92d12343fc
commit 788e3b9d54
7 files changed
+11 -14

No files matched your search

+5 -8
View File
@@ -1,7 +1,3 @@
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
public class Entity extends DoublyLinkedListNode {
public VertexNormal[] vertexNormal;
@@ -10,15 +6,16 @@ public class Entity extends DoublyLinkedListNode {
public Entity() {
}
public void draw(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2) {
Model model = method444();
public void draw(int yaw, int sinEyePitch, int cosEyePitch, int sinEyeYaw, int cosEyeYaw, int relativeX, int relativeY, int relativeZ, int bitset) {
Model model = getModel();
if (model != null) {
minY = model.minY;
model.draw(i, j, k, l, i1, j1, k1, l1, i2);
model.draw(yaw, sinEyePitch, cosEyePitch, sinEyeYaw, cosEyeYaw, relativeX, relativeY, relativeZ, bitset);
}
}
public Model method444() {
public Model getModel() {
return null;
}
+1 -1
View File
@@ -43,7 +43,7 @@ public class LocEntity extends Entity {
}
@Override
public Model method444() {
public Model getModel() {
int j = -1;
if (aType_1607 != null) {
int k = Game.anInt1161 - anInt1608;
+1 -1
View File
@@ -26,7 +26,7 @@ public class NPCEntity extends PathingEntity {
}
@Override
public Model method444() {
public Model getModel() {
if (aType_1696 == null) {
return null;
}
+1 -1
View File
@@ -11,7 +11,7 @@ public class ObjStackEntity extends Entity {
}
@Override
public Model method444() {
public Model getModel() {
ObjType type = ObjType.method198(anInt1558);
return type.method201(anInt1559);
}
+1 -1
View File
@@ -34,7 +34,7 @@ public class PlayerEntity extends PathingEntity {
}
@Override
public Model method444() {
public Model getModel() {
if (!aBoolean1710) {
return null;
}
+1 -1
View File
@@ -63,7 +63,7 @@ public class ProjectileEntity extends Entity {
}
@Override
public Model method444() {
public Model getModel() {
Model model = aType_1592.method266();
if (model == null) {
return null;
+1 -1
View File
@@ -24,7 +24,7 @@ public class SpotAnimEntity extends Entity {
}
@Override
public Model method444() {
public Model getModel() {
Model model = aType_1568.method266();
if (model == null) {
return null;