-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remaining things for 1.10 port #71
Comments
Thank you for making this list. 👍 |
@squeek502 For the JEI descriptions, should we migrate to the system already added by JEI, or should we reimplement it using the old code from the NEI
would be
Either way, it the valid items would be determined by doing for (Item item : Item.REGISTRY)
{
if (item.getRegistryName().getResourceDomain().equals(ModInfo.MODID_LOWER))
{
if (item.getHasSubtypes())
{
List<ItemStack> subItems = new ArrayList<ItemStack>();
item.getSubItems(item, null, subItems);
for (ItemStack subItem : subItems)
{
String descKey = subItem.getUnlocalizedName() + ".nei.usage";
if (LangHelper.existsRaw(descKey))
// Register the itemstack somehow depending on the approach taken
}
}
else
{
ItemStack toAdd = new ItemStack(item);
String descKey = toAdd.getUnlocalizedName() + ".nei.usage";
if (LangHelper.existsRaw(descKey))
// Register the itemstack somehow depending on the approach taken
}
}
} I've done it both ways and that code works well. |
@elifoster see 160e12b |
I provided a review. 👍ing the stuff you agree with would be appreciative—I can work on the stuff I brought up no problem. As for the fluid thing, I'm not sure I quite understand the problem. What is wrong with it being looked up using |
Replied to your comments, will commit something that addresses them in a bit. EDIT: 1470604
The issue is currently that if you press R or U on any of the fluid blocks in JEI (Raw Ender, for example), nothing comes up. Raw Ender should have a Crafting description that shows up, saying that it's the byproduct of an Ender Rift (note: if you do usage of Ender Rift, Raw Ender shows up as a byproduct, so it's not a symmetrical bug). EDIT: Fixed by 036f5ab |
Regarding "Make fluid containers and fluids have the same recipes/usages," it might be better to simply use the fluid containers for the recipes/usages, and then to blacklist the fluid blocks from showing up at all in JEI. What do you think? |
This is complicated by the fact that certain things will output/use contained fluids, and certain things will output/use fluid blocks from the world. So, if everything shows up as a contained fluid, that divide will be confusing (for example, piston crafting showing input/output of bottled fluid, when that is not how it works). It might be possible to get around this, though, by making what shows up in JEI independent of what gets set as the input/output in the |
Putting this here (copied from IRC) just so I don't forget about it:
Also, with the description stuff working properly, the "Make fluid containers and fluids have the same recipes/usages" thing is not as important, since I believe all bottled fluids link to their fluid blocks with the byproducts/byproduct of sections. I think we should focus on the few remaining things and hold off on this bit (will make a separate issue for it and remove it from this checklist). |
Maybe spoke too soon about closing this. Going to re-open and use it to track a few remaining things:
|
Because my memory isn't good enough to just remember. I just went through the readme.
TODO
Issues found
Untested:
The text was updated successfully, but these errors were encountered: