mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 01:49:40 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package net.minecraft.client.gui.inventory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.gui.inventory.GuiInventory;
|
||||
|
||||
public class NPCGuiContainerHelper {
|
||||
|
||||
public static int getLeft(GuiContainer gui) {
|
||||
return gui.guiLeft;
|
||||
}
|
||||
|
||||
public static int getTop(GuiContainer gui) {
|
||||
return gui.guiTop;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package net.minecraft.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
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 int shouldRenderPass(EntityLivingBase entity, int par2, float par3, RendererLivingEntity renderEntity) {
|
||||
return renderEntity.shouldRenderPass(entity, par2, par3);
|
||||
}
|
||||
|
||||
public static void preRenderCallback(EntityLivingBase entity, float f,
|
||||
RendererLivingEntity renderEntity) {
|
||||
renderEntity.preRenderCallback(entity, f);
|
||||
}
|
||||
|
||||
public static ModelBase getPassModel(RendererLivingEntity render) {
|
||||
return render.renderPassModel;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.minecraft.client.resources;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class NPCResourceHelper {
|
||||
|
||||
public static File getPackFile(AbstractResourcePack pack){
|
||||
return pack.resourcePackFile;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package net.minecraft.entity;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class NPCEntityHelper {
|
||||
|
||||
public static Item getDropItem(EntityLiving entity){
|
||||
return entity.getDropItem();
|
||||
}
|
||||
|
||||
public static void setRecentlyHit(EntityLivingBase entity){
|
||||
entity.recentlyHit = 100;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user