-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add the HeatCondition API to allow the creation of alternate heating types under basins #8654
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
base: mc1.20.1/dev
Are you sure you want to change the base?
Add the HeatCondition API to allow the creation of alternate heating types under basins #8654
Conversation
9e91172
to
a575d69
Compare
…1/heat-type # Conflicts: # src/generated/resources/.cache/5971ca79ecd127e7d1e65be1cd906ac939e6a245 # src/generated/resources/.cache/b256105d8411632b0d585496ea8944a751a08034
This apparently makes Create require JEI. I'll have to fix that |
src/main/java/com/simibubi/create/api/recipe/HeatCondition.java
Outdated
Show resolved
Hide resolved
Could you consider also support for EMI? REI will probably also be necessary once Create 6 Fabric is ready. That should cover the current Big Three recipe viewers. |
Create forge does not natively have support for EMI so only supporting a few things with EMI is not good choice |
This PR creates the
HeatCondition
interface, which defines how a basin should check if a heating requirement is satisfied.It also provides methods for displaying the recipe in JEI: A method for rendering an IDrawable in the Category, a method for providing "hint items" (blaze burner, blaze cake), and a method to get the color that the Heat Condition's name will be displayed as.
This PR also creates the
HEAT_CONDITION
registry, which is used to register theseHeatCondition
s and serialize them into recipes.Basin Recipes have changed, with the
heatRequirement
field being now a namespaced value (create:heated
,example:cooled
) withcreate
as the default (this is to maintain backwards compatiblity; don't want to break literally every datapack 😅)An example usage of this is linked in this gist: https://gist.github.com/vercte/fe67c1bc6649c287f84905eb9cbfb2fb