From 48b45b314ad644997600ab49a951d6c2a642c498 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Sun, 2 Aug 2020 03:34:56 -0500 Subject: [PATCH] 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 Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 --- mappings/net/minecraft/world/LunarWorldView.mapping | 12 ++++++++++++ .../minecraft/world/dimension/DimensionType.mapping | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 mappings/net/minecraft/world/LunarWorldView.mapping diff --git a/mappings/net/minecraft/world/LunarWorldView.mapping b/mappings/net/minecraft/world/LunarWorldView.mapping new file mode 100644 index 0000000000..f256b02ddf --- /dev/null +++ b/mappings/net/minecraft/world/LunarWorldView.mapping @@ -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

This is typically used to determine the size of the moon that should be rendered. + METHOD method_30274 (F)F + ARG 1 tickDelta diff --git a/mappings/net/minecraft/world/dimension/DimensionType.mapping b/mappings/net/minecraft/world/dimension/DimensionType.mapping index b84dba00c9..31484ffcbb 100644 --- a/mappings/net/minecraft/world/dimension/DimensionType.mapping +++ b/mappings/net/minecraft/world/dimension/DimensionType.mapping @@ -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

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;