ZotCoreLoader

- измененно пару клиентских методов
- добавлена поддержка NativeAPI.getRotation
This commit is contained in:
Reider745
2023-11-29 08:48:35 +03:00
parent f57aeb2dcd
commit 3c99da750a
3 changed files with 14 additions and 4 deletions
@@ -304,4 +304,12 @@ public class EntityMethod {
if(entity != null)
entity.namedTag = pointer;
}
public static void getRotation(long unwrapEntity, float[] pos) {
Entity entity = getEntityToLong(unwrapEntity);
if(entity != null){
pos[0] = (float) entity.getYaw();
pos[1] = (float) entity.getPitch();
}
}
}
@@ -355,9 +355,11 @@ public class NativeAPI {
}
public static void getRotation(long unwrapEntity, float[] pos) {
EntityMethod.getRotation(unwrapEntity, pos);
}
public static void setRotation(long unwrapEntity, float x, float y) {
}
public static void setRotationAxis(long unwrapEntity, int axis, float val) {
@@ -44,18 +44,18 @@ public class ResourcePackManager {
}
public static String getBlockTextureName(String name, int id) {
if (instance.resourceStorage != null) {
/*if (instance.resourceStorage != null) {
String result = instance.resourceStorage.blockTextureDescriptor.getTextureName(name, id);
return result;
}
}*/
return null;
}
public static String getItemTextureName(String name, int id) {
if (instance.resourceStorage != null) {
/*if (instance.resourceStorage != null) {
String result = instance.resourceStorage.itemTextureDescriptor.getTextureName(name, id);
return result;
}
}*/
return null;
}