mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 21:09:40 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -2,11 +2,11 @@ package net.minecraft.client.gui.inventory;
|
||||
|
||||
public class NPCGuiContainerHelper {
|
||||
|
||||
public static int getLeft(GuiContainer gui) {
|
||||
return gui.guiLeft;
|
||||
}
|
||||
public static int getLeft(GuiContainer gui) {
|
||||
return gui.guiLeft;
|
||||
}
|
||||
|
||||
public static int getTop(GuiContainer gui) {
|
||||
return gui.guiTop;
|
||||
}
|
||||
public static int getTop(GuiContainer gui) {
|
||||
return gui.guiTop;
|
||||
}
|
||||
}
|
||||
@@ -7,35 +7,35 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class NPCRendererHelper {
|
||||
|
||||
public static ModelBase getMainModel(RendererLivingEntity render){
|
||||
return render.mainModel;
|
||||
}
|
||||
|
||||
public static String getTexture(RendererLivingEntity render, Entity entity){
|
||||
ResourceLocation location = render.getEntityTexture(entity);
|
||||
return location.toString();
|
||||
}
|
||||
public static ModelBase getMainModel(RendererLivingEntity render) {
|
||||
return render.mainModel;
|
||||
}
|
||||
|
||||
public static int shouldRenderPass(EntityLivingBase entity, int par2, float par3, RendererLivingEntity renderEntity) {
|
||||
return renderEntity.shouldRenderPass(entity, par2, par3);
|
||||
}
|
||||
public static String getTexture(RendererLivingEntity render, Entity entity) {
|
||||
ResourceLocation location = render.getEntityTexture(entity);
|
||||
return location.toString();
|
||||
}
|
||||
|
||||
public static void preRenderCallback(EntityLivingBase entity, float f,
|
||||
RendererLivingEntity renderEntity) {
|
||||
renderEntity.preRenderCallback(entity, f);
|
||||
}
|
||||
public static int shouldRenderPass(EntityLivingBase entity, int par2, float par3, RendererLivingEntity renderEntity) {
|
||||
return renderEntity.shouldRenderPass(entity, par2, par3);
|
||||
}
|
||||
|
||||
public static ModelBase getPassModel(RendererLivingEntity render) {
|
||||
return render.renderPassModel;
|
||||
}
|
||||
public static void preRenderCallback(EntityLivingBase entity, float f,
|
||||
RendererLivingEntity renderEntity) {
|
||||
renderEntity.preRenderCallback(entity, f);
|
||||
}
|
||||
|
||||
public static float handleRotationFloat(EntityLivingBase entity,
|
||||
float par2, RendererLivingEntity renderEntity) {
|
||||
return renderEntity.handleRotationFloat(entity, par2);
|
||||
}
|
||||
public static ModelBase getPassModel(RendererLivingEntity render) {
|
||||
return render.renderPassModel;
|
||||
}
|
||||
|
||||
public static void renderEquippedItems(EntityLivingBase entity, float f,
|
||||
RendererLivingEntity renderEntity) {
|
||||
renderEntity.renderEquippedItems(entity, f);
|
||||
}
|
||||
public static float handleRotationFloat(EntityLivingBase entity,
|
||||
float par2, RendererLivingEntity renderEntity) {
|
||||
return renderEntity.handleRotationFloat(entity, par2);
|
||||
}
|
||||
|
||||
public static void renderEquippedItems(EntityLivingBase entity, float f,
|
||||
RendererLivingEntity renderEntity) {
|
||||
renderEntity.renderEquippedItems(entity, f);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.io.File;
|
||||
|
||||
public class NPCResourceHelper {
|
||||
|
||||
public static File getPackFile(AbstractResourcePack pack){
|
||||
return pack.resourcePackFile;
|
||||
}
|
||||
public static File getPackFile(AbstractResourcePack pack) {
|
||||
return pack.resourcePackFile;
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,12 @@ import net.minecraft.item.Item;
|
||||
|
||||
public class NPCEntityHelper {
|
||||
|
||||
public static Item getDropItem(EntityLiving entity){
|
||||
return entity.getDropItem();
|
||||
}
|
||||
public static Item getDropItem(EntityLiving entity) {
|
||||
return entity.getDropItem();
|
||||
}
|
||||
|
||||
public static void setRecentlyHit(EntityLivingBase entity) {
|
||||
entity.recentlyHit = 100;
|
||||
}
|
||||
|
||||
public static void setRecentlyHit(EntityLivingBase entity){
|
||||
entity.recentlyHit = 100;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user