ZotCoreLoader
- измененно пару клиентских методов - добавлена поддержка NativeAPI.getRotation
This commit is contained in:
@@ -304,4 +304,12 @@ public class EntityMethod {
|
|||||||
if(entity != null)
|
if(entity != null)
|
||||||
entity.namedTag = pointer;
|
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) {
|
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 setRotation(long unwrapEntity, float x, float y) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setRotationAxis(long unwrapEntity, int axis, float val) {
|
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) {
|
public static String getBlockTextureName(String name, int id) {
|
||||||
if (instance.resourceStorage != null) {
|
/*if (instance.resourceStorage != null) {
|
||||||
String result = instance.resourceStorage.blockTextureDescriptor.getTextureName(name, id);
|
String result = instance.resourceStorage.blockTextureDescriptor.getTextureName(name, id);
|
||||||
return result;
|
return result;
|
||||||
}
|
}*/
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getItemTextureName(String name, int id) {
|
public static String getItemTextureName(String name, int id) {
|
||||||
if (instance.resourceStorage != null) {
|
/*if (instance.resourceStorage != null) {
|
||||||
String result = instance.resourceStorage.itemTextureDescriptor.getTextureName(name, id);
|
String result = instance.resourceStorage.itemTextureDescriptor.getTextureName(name, id);
|
||||||
return result;
|
return result;
|
||||||
}
|
}*/
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user