mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 02:29:41 +00:00
CAPITAL I cause it looks cool
This commit is contained in:
1 parent
2d0d34bd6e
commit
491e377a3e
40 files changed
+150
-158
No files matched your search
@@ -254,8 +254,8 @@ public class NoppesUtil {
|
||||
}
|
||||
|
||||
public static void openDialog(NBTTagCompound compound, EntityNPCInterface npc, EntityPlayer player){
|
||||
if(DialogController.instance == null)
|
||||
DialogController.instance = new DialogController();
|
||||
if(DialogController.Instance == null)
|
||||
DialogController.Instance = new DialogController();
|
||||
Dialog dialog = new Dialog();
|
||||
dialog.readNBT(compound);
|
||||
GuiScreen gui = Minecraft.getMinecraft().currentScreen;
|
||||
|
||||
@@ -97,7 +97,7 @@ public class PacketHandlerClient extends PacketHandlerServer{
|
||||
RecipeController.syncRecipes = new HashMap<Integer, RecipeCarpentry>();
|
||||
}
|
||||
else if(type == EnumPacketClient.SYNCRECIPES_CARPENTRYBENCH){
|
||||
RecipeController.instance.anvilRecipes = RecipeController.syncRecipes;
|
||||
RecipeController.Instance.anvilRecipes = RecipeController.syncRecipes;
|
||||
RecipeController.syncRecipes = new HashMap<Integer, RecipeCarpentry>();
|
||||
}
|
||||
else if(type == EnumPacketClient.DIALOG){
|
||||
|
||||
@@ -38,7 +38,7 @@ public class GuiNpcCarpentryBench extends GuiContainerNPCInterface
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
button.enabled = RecipeController.instance != null && !RecipeController.instance.anvilRecipes.isEmpty();
|
||||
button.enabled = RecipeController.Instance != null && !RecipeController.Instance.anvilRecipes.isEmpty();
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.renderEngine.bindTexture(resource);
|
||||
int l = (width - xSize) / 2;
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import noppes.npcs.client.gui.util.*;
|
||||
import noppes.npcs.constants.EnumPlayerData;
|
||||
import noppes.npcs.controllers.RecipeController;
|
||||
import noppes.npcs.controllers.data.RecipeCarpentry;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -34,7 +33,7 @@ public class GuiRecipes extends GuiNPCInterface
|
||||
this.xSize = 256;
|
||||
setBackground("recipes.png");
|
||||
this.closeOnEsc = true;
|
||||
recipes.addAll(RecipeController.instance.anvilRecipes.values());
|
||||
recipes.addAll(RecipeController.Instance.anvilRecipes.values());
|
||||
}
|
||||
@Override
|
||||
public void initGui(){
|
||||
@@ -68,10 +67,10 @@ public class GuiRecipes extends GuiNPCInterface
|
||||
|
||||
private List<IRecipe> getSearchList(){
|
||||
if(search.isEmpty()){
|
||||
return new ArrayList<IRecipe>(RecipeController.instance.anvilRecipes.values());
|
||||
return new ArrayList<IRecipe>(RecipeController.Instance.anvilRecipes.values());
|
||||
}
|
||||
List<IRecipe> list = new ArrayList<IRecipe>();
|
||||
for(IRecipe recipe : RecipeController.instance.anvilRecipes.values()){
|
||||
for(IRecipe recipe : RecipeController.Instance.anvilRecipes.values()){
|
||||
if(recipe.getRecipeOutput() == null)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user