Map some lunar cycle related logic. (#1638)

* Map some lunar cycle related logic.

* Update mappings/net/minecraft/world/dimension/DimensionType.mapping

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Update mappings/net/minecraft/world/LunarWorldView.mapping

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Moon phases was decided

* getLunarTime is better

* Update mappings/net/minecraft/world/dimension/DimensionType.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/dimension/DimensionType.mapping

Co-authored-by: Yanis48 <doublecraft.official@gmail.com>

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
This commit is contained in:
i509VCB 2020-08-02 03:34:56 -05:00 committed by GitHub
parent 96ce5a1fcd
commit 48b45b314a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
CLASS net/minecraft/class_5424 net/minecraft/world/LunarWorldView
METHOD method_30271 getLunarTime ()J
METHOD method_30272 getMoonSize ()F
COMMENT Gets the current size of the moon in the world.
COMMENT
COMMENT @return the size of the moon on a scale of {@code 0.0F} to {@code 1.0F}
METHOD method_30273 getMoonPhase ()I
COMMENT Gets the moon phase index of Minecraft's moon.
COMMENT
COMMENT <p>This is typically used to determine the size of the moon that should be rendered.
METHOD method_30274 (F)F
ARG 1 tickDelta

View File

@ -3,6 +3,7 @@ CLASS net/minecraft/class_2874 net/minecraft/world/dimension/DimensionType
FIELD field_20658 biomeAccessType Lnet/minecraft/class_4545;
FIELD field_24504 hasCeiling Z
FIELD field_24505 ultrawarm Z
FIELD field_24752 MOON_SIZES [F
FIELD field_24753 OVERWORLD_REGISTRY_KEY Lnet/minecraft/class_5321;
FIELD field_24754 THE_NETHER_REGISTRY_KEY Lnet/minecraft/class_5321;
FIELD field_24755 THE_END_REGISTRY_KEY Lnet/minecraft/class_5321;
@ -65,6 +66,14 @@ CLASS net/minecraft/class_2874 net/minecraft/world/dimension/DimensionType
ARG 0 seed
METHOD method_28523 addRegistryDefaults (Lnet/minecraft/class_5455$class_5457;)Lnet/minecraft/class_5455$class_5457;
ARG 0 registryManager
METHOD method_28528 (J)F
ARG 1 time
METHOD method_28531 getMoonPhase (J)I
COMMENT Gets the moon phase index of Minecraft's moon.
COMMENT
COMMENT <p>This is typically used to determine the size of the moon that should be rendered.
ARG 1 time
COMMENT the time to calculate the index from
METHOD method_28533 createEndGenerator (J)Lnet/minecraft/class_2794;
ARG 0 seed
METHOD method_28535 createNetherGenerator (J)Lnet/minecraft/class_2794;