Java 类net.minecraft.client.mco.WorldTemplate 实例源码

项目:RuneCraftery    文件:WorldTemplateList.java   
public static WorldTemplateList func_110735_a(String p_110735_0_) {
   WorldTemplateList var1 = new WorldTemplateList();
   var1.field_110736_a = new ArrayList();

   try {
      JsonRootNode var2 = (new JdomParser()).parse(p_110735_0_);
      if(var2.isArrayNode(new Object[]{"templates"})) {
         Iterator var3 = var2.getArrayNode(new Object[]{"templates"}).iterator();

         while(var3.hasNext()) {
            JsonNode var4 = (JsonNode)var3.next();
            var1.field_110736_a.add(WorldTemplate.func_110730_a(var4));
         }
      }
   } catch (InvalidSyntaxException var5) {
      ;
   } catch (IllegalArgumentException var6) {
      ;
   }

   return var1;
}
项目:Resilience-Client-Source    文件:GuiScreenMcoWorldTemplate.java   
private void func_148387_b(int p_148387_1_, int p_148387_2_, int p_148387_3_, int p_148387_4_, Tessellator p_148387_5_)
{
    WorldTemplate var6 = (WorldTemplate)GuiScreenMcoWorldTemplate.this.field_146960_i.get(p_148387_1_);
    GuiScreenMcoWorldTemplate.this.drawString(GuiScreenMcoWorldTemplate.this.fontRendererObj, var6.field_148785_b, p_148387_2_ + 2, p_148387_3_ + 1, 16777215);
    GuiScreenMcoWorldTemplate.this.drawString(GuiScreenMcoWorldTemplate.this.fontRendererObj, var6.field_148784_d, p_148387_2_ + 2, p_148387_3_ + 12, 7105644);
    GuiScreenMcoWorldTemplate.this.drawString(GuiScreenMcoWorldTemplate.this.fontRendererObj, var6.field_148786_c, p_148387_2_ + 2 + 207 - GuiScreenMcoWorldTemplate.this.fontRendererObj.getStringWidth(var6.field_148786_c), p_148387_3_ + 1, 5000268);
}
项目:RuneCraftery    文件:TaskWorldCreation.java   
public TaskWorldCreation(GuiScreenCreateOnlineWorld p_i1106_1_, String p_i1106_2_, String p_i1106_3_, String p_i1106_4_, WorldTemplate p_i1106_5_) {
   this.field_96590_a = p_i1106_1_;
   this.field_96589_c = p_i1106_2_;
   this.field_96587_d = p_i1106_3_;
   this.field_104065_f = p_i1106_4_;
   this.field_111253_f = p_i1106_5_;
}
项目:RuneCraftery    文件:TaskWorldCreation.java   
public TaskWorldCreation(GuiScreenCreateOnlineWorld par1GuiScreenCreateOnlineWorld, String par2Str, String par3Str, String par4Str, WorldTemplate par5WorldTemplate)
{
    this.field_96590_a = par1GuiScreenCreateOnlineWorld;
    this.field_96589_c = par2Str;
    this.field_96587_d = par3Str;
    this.field_104065_f = par4Str;
    this.field_111253_f = par5WorldTemplate;
}
项目:RuneCraftery    文件:TaskResetWorld.java   
public TaskResetWorld(GuiScreenResetWorld par1GuiScreenResetWorld, long par2, String par4Str, WorldTemplate par5WorldTemplate)
{
    this.field_96592_a = par1GuiScreenResetWorld;
    this.field_96591_c = par2;
    this.field_104066_d = par4Str;
    this.field_111252_e = par5WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
/**
 * the element in the slot that was clicked, boolean for wether it was double clicked or not
 */
protected void elementClicked(int par1, boolean par2)
{
    if (par1 < GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size())
    {
        GuiScreenMcoWorldTemplate.func_130064_a(this.field_111245_a, par1);
        GuiScreenMcoWorldTemplate.func_130065_a(this.field_111245_a, (WorldTemplate)null);
    }
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
private void func_111244_b(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    WorldTemplate worldtemplate = (WorldTemplate)GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).get(par1);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110389_g(this.field_111245_a), worldtemplate.field_110732_b, par2 + 2, par3 + 1, 16777215);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110387_h(this.field_111245_a), worldtemplate.field_110731_d, par2 + 2, par3 + 12, 7105644);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110384_i(this.field_111245_a), worldtemplate.field_110733_c, par2 + 2 + 207 - GuiScreenMcoWorldTemplate.func_130063_j(this.field_111245_a).getStringWidth(worldtemplate.field_110733_c), par3 + 1, 5000268);
}
项目:BetterNutritionMod    文件:TaskWorldCreation.java   
public TaskWorldCreation(GuiScreenCreateOnlineWorld par1GuiScreenCreateOnlineWorld, String par2Str, String par3Str, String par4Str, WorldTemplate par5WorldTemplate)
{
    this.field_96590_a = par1GuiScreenCreateOnlineWorld;
    this.field_96589_c = par2Str;
    this.field_96587_d = par3Str;
    this.field_104065_f = par4Str;
    this.field_111253_f = par5WorldTemplate;
}
项目:BetterNutritionMod    文件:TaskResetWorld.java   
public TaskResetWorld(GuiScreenResetWorld par1GuiScreenResetWorld, long par2, String par4Str, WorldTemplate par5WorldTemplate)
{
    this.field_96592_a = par1GuiScreenResetWorld;
    this.field_96591_c = par2;
    this.field_104066_d = par4Str;
    this.field_111252_e = par5WorldTemplate;
}
项目:BetterNutritionMod    文件:GuiScreenMcoWorldTemplateSelectionList.java   
/**
 * the element in the slot that was clicked, boolean for wether it was double clicked or not
 */
protected void elementClicked(int par1, boolean par2)
{
    if (par1 < GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size())
    {
        GuiScreenMcoWorldTemplate.func_130064_a(this.field_111245_a, par1);
        GuiScreenMcoWorldTemplate.func_130065_a(this.field_111245_a, (WorldTemplate)null);
    }
}
项目:BetterNutritionMod    文件:GuiScreenMcoWorldTemplateSelectionList.java   
private void func_111244_b(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    WorldTemplate worldtemplate = (WorldTemplate)GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).get(par1);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110389_g(this.field_111245_a), worldtemplate.field_110732_b, par2 + 2, par3 + 1, 16777215);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110387_h(this.field_111245_a), worldtemplate.field_110731_d, par2 + 2, par3 + 12, 7105644);
    this.field_111245_a.drawString(GuiScreenMcoWorldTemplate.func_110384_i(this.field_111245_a), worldtemplate.field_110733_c, par2 + 2 + 207 - GuiScreenMcoWorldTemplate.func_130063_j(this.field_111245_a).getStringWidth(worldtemplate.field_110733_c), par3 + 1, 5000268);
}
项目:Resilience-Client-Source    文件:GuiScreenCreateOnlineWorld.java   
public void func_146735_a(WorldTemplate p_146756_1_)
{
    this.field_146759_v = p_146756_1_;
}
项目:Resilience-Client-Source    文件:GuiScreenCreateOnlineWorld.java   
public void func_146735_a(Object p_146735_1_)
{
    this.func_146735_a((WorldTemplate)p_146735_1_);
}
项目:Resilience-Client-Source    文件:GuiScreenCreateOnlineWorld.java   
public TaskWorldCreation(String p_i45036_2_, WorldTemplate p_i45036_3_)
{
    this.field_148427_c = p_i45036_2_;
    this.field_148426_d = p_i45036_3_;
}
项目:Resilience-Client-Source    文件:GuiScreenMcoWorldTemplate.java   
public GuiScreenMcoWorldTemplate(ScreenWithCallback par1ScreenWithCallback, WorldTemplate par2WorldTemplate)
{
    this.field_146954_g = par1ScreenWithCallback;
    this.field_146959_h = par2WorldTemplate;
}
项目:Resilience-Client-Source    文件:GuiScreenMcoWorldTemplate.java   
protected boolean func_148356_a(int p_148356_1_)
{
    return GuiScreenMcoWorldTemplate.this.field_146960_i.size() == 0 ? false : (p_148356_1_ >= GuiScreenMcoWorldTemplate.this.field_146960_i.size() ? false : (GuiScreenMcoWorldTemplate.this.field_146959_h != null ? GuiScreenMcoWorldTemplate.this.field_146959_h.field_148785_b.equals(((WorldTemplate)GuiScreenMcoWorldTemplate.this.field_146960_i.get(p_148356_1_)).field_148785_b) : p_148356_1_ == GuiScreenMcoWorldTemplate.this.field_146956_s));
}
项目:Resilience-Client-Source    文件:GuiScreenResetWorld.java   
void func_146740_a(WorldTemplate p_146740_1_)
{
    this.field_146745_t = p_146740_1_;
}
项目:Resilience-Client-Source    文件:GuiScreenResetWorld.java   
void func_146735_a(Object p_146735_1_)
{
    this.func_146740_a((WorldTemplate)p_146735_1_);
}
项目:Resilience-Client-Source    文件:GuiScreenResetWorld.java   
public ResetWorldTask(long par2, String par4Str, WorldTemplate par5WorldTemplate)
{
    this.field_148422_c = par2;
    this.field_148420_d = par4Str;
    this.field_148421_e = par5WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenCreateOnlineWorld.java   
public void func_110355_a(WorldTemplate p_110355_1_) {
   this.field_110356_u = p_110355_1_;
}
项目:RuneCraftery    文件:GuiScreenCreateOnlineWorld.java   
public void func_110354_a(Object p_110354_1_) {
   this.func_110355_a((WorldTemplate)p_110354_1_);
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
public GuiScreenMcoWorldTemplate(ScreenWithCallback p_i1115_1_, WorldTemplate p_i1115_2_) {
   this.field_110401_a = p_i1115_1_;
   this.field_110398_b = p_i1115_2_;
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
static WorldTemplate func_130065_a(GuiScreenMcoWorldTemplate p_130065_0_, WorldTemplate p_130065_1_) {
   return p_130065_0_.field_110398_b = p_130065_1_;
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
static WorldTemplate func_130067_e(GuiScreenMcoWorldTemplate p_130067_0_) {
   return p_130067_0_.field_110398_b;
}
项目:RuneCraftery    文件:TaskResetWorld.java   
public TaskResetWorld(GuiScreenResetWorld p_i1134_1_, long p_i1134_2_, String p_i1134_4_, WorldTemplate p_i1134_5_) {
   this.field_96592_a = p_i1134_1_;
   this.field_96591_c = p_i1134_2_;
   this.field_104066_d = p_i1134_4_;
   this.field_111252_e = p_i1134_5_;
}
项目:RuneCraftery    文件:GuiScreenResetWorld.java   
void func_110358_a(WorldTemplate p_110358_1_) {
   this.field_110359_q = p_110358_1_;
}
项目:RuneCraftery    文件:GuiScreenResetWorld.java   
void func_110354_a(Object p_110354_1_) {
   this.func_110358_a((WorldTemplate)p_110354_1_);
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
protected void func_77213_a(int p_77213_1_, boolean p_77213_2_) {
   if(p_77213_1_ < GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size()) {
      GuiScreenMcoWorldTemplate.func_130064_a(this.field_111245_a, p_77213_1_);
      GuiScreenMcoWorldTemplate.func_130065_a(this.field_111245_a, (WorldTemplate)null);
   }
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
protected boolean func_77218_a(int p_77218_1_) {
   return GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size() == 0?false:(p_77218_1_ >= GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size()?false:(GuiScreenMcoWorldTemplate.func_130067_e(this.field_111245_a) != null?GuiScreenMcoWorldTemplate.func_130067_e(this.field_111245_a).field_110732_b.equals(((WorldTemplate)GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).get(p_77218_1_)).field_110732_b):p_77218_1_ == GuiScreenMcoWorldTemplate.func_130062_f(this.field_111245_a)));
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
private void func_111244_b(int p_111244_1_, int p_111244_2_, int p_111244_3_, int p_111244_4_, Tessellator p_111244_5_) {
   WorldTemplate var6 = (WorldTemplate)GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).get(p_111244_1_);
   this.field_111245_a.func_73731_b(GuiScreenMcoWorldTemplate.func_110389_g(this.field_111245_a), var6.field_110732_b, p_111244_2_ + 2, p_111244_3_ + 1, 16777215);
   this.field_111245_a.func_73731_b(GuiScreenMcoWorldTemplate.func_110387_h(this.field_111245_a), var6.field_110731_d, p_111244_2_ + 2, p_111244_3_ + 12, 7105644);
   this.field_111245_a.func_73731_b(GuiScreenMcoWorldTemplate.func_110384_i(this.field_111245_a), var6.field_110733_c, p_111244_2_ + 2 + 207 - GuiScreenMcoWorldTemplate.func_130063_j(this.field_111245_a).func_78256_a(var6.field_110733_c), p_111244_3_ + 1, 5000268);
}
项目:RuneCraftery    文件:GuiScreenCreateOnlineWorld.java   
public void func_110355_a(WorldTemplate par1WorldTemplate)
{
    this.field_110356_u = par1WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenCreateOnlineWorld.java   
public void func_110354_a(Object par1Obj)
{
    this.func_110355_a((WorldTemplate)par1Obj);
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
public GuiScreenMcoWorldTemplate(ScreenWithCallback par1ScreenWithCallback, WorldTemplate par2WorldTemplate)
{
    this.field_110401_a = par1ScreenWithCallback;
    this.field_110398_b = par2WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
static WorldTemplate func_130065_a(GuiScreenMcoWorldTemplate par0GuiScreenMcoWorldTemplate, WorldTemplate par1WorldTemplate)
{
    return par0GuiScreenMcoWorldTemplate.field_110398_b = par1WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplate.java   
static WorldTemplate func_130067_e(GuiScreenMcoWorldTemplate par0GuiScreenMcoWorldTemplate)
{
    return par0GuiScreenMcoWorldTemplate.field_110398_b;
}
项目:RuneCraftery    文件:GuiScreenResetWorld.java   
void func_110358_a(WorldTemplate par1WorldTemplate)
{
    this.field_110359_q = par1WorldTemplate;
}
项目:RuneCraftery    文件:GuiScreenResetWorld.java   
void func_110354_a(Object par1Obj)
{
    this.func_110358_a((WorldTemplate)par1Obj);
}
项目:RuneCraftery    文件:GuiScreenMcoWorldTemplateSelectionList.java   
/**
 * returns true if the element passed in is currently selected
 */
protected boolean isSelected(int par1)
{
    return GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size() == 0 ? false : (par1 >= GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).size() ? false : (GuiScreenMcoWorldTemplate.func_130067_e(this.field_111245_a) != null ? GuiScreenMcoWorldTemplate.func_130067_e(this.field_111245_a).field_110732_b.equals(((WorldTemplate)GuiScreenMcoWorldTemplate.func_110395_c(this.field_111245_a).get(par1)).field_110732_b) : par1 == GuiScreenMcoWorldTemplate.func_130062_f(this.field_111245_a)));
}
项目:BetterNutritionMod    文件:GuiScreenCreateOnlineWorld.java   
public void func_110355_a(WorldTemplate par1WorldTemplate)
{
    this.field_110356_u = par1WorldTemplate;
}
项目:BetterNutritionMod    文件:GuiScreenCreateOnlineWorld.java   
public void func_110354_a(Object par1Obj)
{
    this.func_110355_a((WorldTemplate)par1Obj);
}