Ported to 1.16.4.
This commit is contained in:
parent
c6d21db5f9
commit
1a3fcb4376
20 changed files with 37 additions and 33 deletions
|
@ -864,14 +864,14 @@ public class ModContent
|
|||
)).setRegistryName(new ResourceLocation(MODID, "steel_mesh_fence_gate"));
|
||||
|
||||
public static final EdRailingBlock STEEL_RAILING = (EdRailingBlock)(new EdRailingBlock(
|
||||
DecorBlock.CFG_CUTOUT,
|
||||
DecorBlock.CFG_CUTOUT|DecorBlock.CFG_EXPERIMENTAL,
|
||||
Block.Properties.create(Material.IRON, MaterialColor.IRON).hardnessAndResistance(1f, 20f).sound(SoundType.METAL).notSolid(),
|
||||
Auxiliaries.getPixeledAABB(0,0,0, 0, 0,0),
|
||||
Auxiliaries.getPixeledAABB(0,0,0, 16,15.9,1)
|
||||
)).setRegistryName(new ResourceLocation(MODID, "steel_railing"));
|
||||
|
||||
public static final EdCatwalkBlock STEEL_CATWALK = (EdCatwalkBlock)(new EdCatwalkBlock(
|
||||
DecorBlock.CFG_CUTOUT,
|
||||
DecorBlock.CFG_CUTOUT|DecorBlock.CFG_EXPERIMENTAL,
|
||||
Block.Properties.create(Material.IRON, MaterialColor.IRON).hardnessAndResistance(2f, 20f).sound(SoundType.METAL).notSolid(),
|
||||
Auxiliaries.getPixeledAABB(0,0,0, 16, 2,16),
|
||||
Auxiliaries.getPixeledAABB(0,0,0, 16,15.9, 1),
|
||||
|
|
|
@ -1092,7 +1092,7 @@ public class EdCraftingTable
|
|||
String[] translation_keys = { "next", "prev", "clear", "nextcollisionrecipe", "fromstorage", "tostorage", "fromplayer", "toplayer" };
|
||||
for(int i=0; (i<buttons.size()) && (i<translation_keys.length); ++i) {
|
||||
Button bt = buttons.get(i);
|
||||
tooltips.add(new TipRange(bt.x,bt.y, bt.getWidth(), bt.getWidth_CLASH/*getHeight*/(), Auxiliaries.localizable(prefix+translation_keys[i])));
|
||||
tooltips.add(new TipRange(bt.x,bt.y, bt.getWidth(), bt.getHeightRealms(), Auxiliaries.localizable(prefix+translation_keys[i])));
|
||||
}
|
||||
tooltip.init(tooltips);
|
||||
}
|
||||
|
@ -1108,11 +1108,10 @@ public class EdCraftingTable
|
|||
}
|
||||
renderBackground(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
if(!tooltip.render(mx,this, mouseX, mouseY)) func_230459_a_/*renderHoveredToolTip*/(mx, mouseX, mouseY);
|
||||
if(!tooltip.render(mx,this, mouseX, mouseY)) renderHoveredToolTip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void func_230459_a_/*renderHoveredToolTip*/(MatrixStack mx, int mouseX, int mouseY)
|
||||
protected void renderHoveredToolTip(MatrixStack mx, int mouseX, int mouseY)
|
||||
{
|
||||
if((!player.inventory.getItemStack().isEmpty()) || (getSlotUnderMouse() == null)) return;
|
||||
final Slot slot = getSlotUnderMouse();
|
||||
|
|
|
@ -918,7 +918,7 @@ public class EdDropper
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -810,7 +810,7 @@ public class EdElectricalFurnace
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -996,7 +996,7 @@ public class EdFurnace
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -869,7 +869,7 @@ public class EdHopper
|
|||
{
|
||||
renderBackground(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -721,7 +721,7 @@ public class EdLabeledCrate
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -766,7 +766,7 @@ public class EdPlacer
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
if(!tooltip_.render(mx, this, mouseX, mouseY)) renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -704,7 +704,7 @@ public class EdWasteIncinerator
|
|||
{
|
||||
renderBackground/*renderBackground*/(mx);
|
||||
super.render(mx, mouseX, mouseY, partialTicks);
|
||||
func_230459_a_/*func_230459_a_*/(mx, mouseX, mouseY);
|
||||
renderHoveredTooltip(mx, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
* JEI plugin (see https://github.com/mezz/JustEnoughItems/wiki/Creating-Plugins)
|
||||
*/
|
||||
package wile.engineersdecor.eapi.jei;
|
||||
//public class JEIPlugin {}
|
||||
|
||||
public class JEIPlugin {}
|
||||
/*
|
||||
import wile.engineersdecor.ModEngineersDecor;
|
||||
import wile.engineersdecor.ModConfig;
|
||||
import wile.engineersdecor.ModContent;
|
||||
|
@ -74,3 +74,4 @@ public class JEIPlugin implements mezz.jei.api.IModPlugin
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -233,7 +233,7 @@ public class Auxiliaries
|
|||
}
|
||||
|
||||
public static @Nullable ITextComponent unserializeTextComponent(String serialized)
|
||||
{ return ITextComponent.Serializer.func_240643_a_(serialized); }
|
||||
{ return ITextComponent.Serializer.getComponentFromJson(serialized); }
|
||||
|
||||
public static String serializeTextComponent(ITextComponent tc)
|
||||
{ return (tc==null) ? ("") : (ITextComponent.Serializer.toJson(tc)); }
|
||||
|
|
|
@ -11,7 +11,6 @@ package wile.engineersdecor.libmc.detail;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.tags.ITag;
|
||||
import net.minecraft.tags.ItemTags;
|
||||
import net.minecraft.tags.TagCollectionManager;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.JSONUtils;
|
||||
|
@ -98,7 +97,7 @@ public class OptionalRecipeCondition implements ICondition
|
|||
if(without_recipes) return false;
|
||||
if((experimental) && (!with_experimental)) return false;
|
||||
final IForgeRegistry<Item> item_registry = ForgeRegistries.ITEMS;
|
||||
final Map<ResourceLocation, ITag<Item>> item_tags = TagCollectionManager.func_242178_a().func_241836_b().func_241833_a(); // ItemTags.getCollection().getTagMap() not set yet
|
||||
final Map<ResourceLocation, ITag<Item>> item_tags = TagCollectionManager.getManager().getItemTags().getIDTagMap();
|
||||
if(result != null) {
|
||||
boolean item_registered = item_registry.containsKey(result);
|
||||
if(!item_registered) return false; // required result not registered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue