From b7c6ef1de65b5dd09b045ab86fb308022250f5d4 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 10 Jan 2025 16:59:51 +0500 Subject: [PATCH 1/2] fix: replace all instances of 'prev[A-Z] with 'last' (#4042) --- .../entity/ShulkerBoxBlockEntity.mapping | 2 +- .../block/vault/VaultClientData.mapping | 4 ++-- .../client/gui/hud/PlayerListHud.mapping | 4 ++-- .../client/gui/tooltip/TooltipState.mapping | 2 +- .../client/network/ClientPlayerEntity.mapping | 2 +- .../client/particle/Particle.mapping | 8 +++---- .../RealmsSelectWorldTemplateScreen.mapping | 2 +- .../client/render/RenderTickCounter.mapping | 2 +- .../client/render/WorldRenderer.mapping | 2 +- .../render/debug/LightDebugRenderer.mapping | 2 +- .../render/item/HeldItemRenderer.mapping | 4 ++-- .../client/util/BufferAllocator.mapping | 2 +- mappings/net/minecraft/entity/Entity.mapping | 24 +++++++++---------- .../net/minecraft/entity/LimbAnimator.mapping | 2 +- .../net/minecraft/entity/LivingEntity.mapping | 4 ++-- .../entity/ai/goal/BreakDoorGoal.mapping | 2 +- .../ai/pathing/LandPathNodeMaker.mapping | 4 ++-- .../entity/boss/WitherEntity.mapping | 6 ++--- .../boss/dragon/EnderDragonEntity.mapping | 2 +- .../effect/StatusEffectInstance.mapping | 2 +- .../entity/mob/GuardianEntity.mapping | 4 ++-- .../entity/mob/ShulkerEntity.mapping | 6 ++--- .../entity/passive/AllayEntity.mapping | 4 ++-- .../entity/passive/CatEntity.mapping | 6 ++--- .../entity/passive/ChickenEntity.mapping | 4 ++-- .../entity/passive/ParrotEntity.mapping | 4 ++-- .../entity/passive/SquidEntity.mapping | 8 +++---- .../entity/player/PlayerEntity.mapping | 8 +++---- .../projectile/ProjectileEntity.mapping | 2 +- .../s2c/play/CommonPlayerSpawnInfo.mapping | 4 ++-- .../minecraft/server/MinecraftServer.mapping | 2 +- .../network/ServerPlayNetworkHandler.mapping | 2 +- .../test/StructureTestListener.mapping | 2 +- .../net/minecraft/test/TestListener.mapping | 2 +- .../minecraft/util/math/LongJumpUtil.mapping | 2 +- 35 files changed, 71 insertions(+), 71 deletions(-) diff --git a/mappings/net/minecraft/block/entity/ShulkerBoxBlockEntity.mapping b/mappings/net/minecraft/block/entity/ShulkerBoxBlockEntity.mapping index 3f6947ad51..4d0f4889c2 100644 --- a/mappings/net/minecraft/block/entity/ShulkerBoxBlockEntity.mapping +++ b/mappings/net/minecraft/block/entity/ShulkerBoxBlockEntity.mapping @@ -1,7 +1,7 @@ CLASS net/minecraft/class_2627 net/minecraft/block/entity/ShulkerBoxBlockEntity FIELD field_12053 viewerCount I FIELD field_12054 inventory Lnet/minecraft/class_2371; - FIELD field_12055 prevAnimationProgress F + FIELD field_12055 lastAnimationProgress F FIELD field_12056 animationProgress F FIELD field_12057 animationStage Lnet/minecraft/class_2627$class_2628; FIELD field_12059 AVAILABLE_SLOTS [I diff --git a/mappings/net/minecraft/block/vault/VaultClientData.mapping b/mappings/net/minecraft/block/vault/VaultClientData.mapping index 298389718c..d0cf6241cb 100644 --- a/mappings/net/minecraft/block/vault/VaultClientData.mapping +++ b/mappings/net/minecraft/block/vault/VaultClientData.mapping @@ -1,7 +1,7 @@ CLASS net/minecraft/class_9202 net/minecraft/block/vault/VaultClientData FIELD field_48878 DISPLAY_ROTATION_SPEED F FIELD field_48879 displayRotation F - FIELD field_48880 prevDisplayRotation F + FIELD field_48880 lastDisplayRotation F METHOD method_56761 getDisplayRotation ()F - METHOD method_56762 getPreviousDisplayRotation ()F + METHOD method_56762 getLastDisplayRotation ()F METHOD method_56763 rotateDisplay ()V diff --git a/mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping b/mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping index c517a531fc..55f4bd4636 100644 --- a/mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping +++ b/mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping @@ -91,12 +91,12 @@ CLASS net/minecraft/class_355 net/minecraft/client/gui/hud/PlayerListHud FIELD field_40395 SCORE_DECREASE_HIGHLIGHT_TICKS J FIELD field_40396 SCORE_INCREASE_HIGHLIGHT_TICKS J FIELD field_40397 score I - FIELD field_40398 prevScore I + FIELD field_40398 lastScore I FIELD field_40399 lastScoreChangeTick J FIELD field_40400 highlightEndTick J METHOD (I)V ARG 1 score - METHOD method_45596 getPrevScore ()I + METHOD method_45596 getLastScore ()I METHOD method_45597 tick (IJ)V ARG 1 score ARG 2 currentTick diff --git a/mappings/net/minecraft/client/gui/tooltip/TooltipState.mapping b/mappings/net/minecraft/client/gui/tooltip/TooltipState.mapping index 8e5043499c..95004442b7 100644 --- a/mappings/net/minecraft/client/gui/tooltip/TooltipState.mapping +++ b/mappings/net/minecraft/client/gui/tooltip/TooltipState.mapping @@ -2,7 +2,7 @@ CLASS net/minecraft/class_9110 net/minecraft/client/gui/tooltip/TooltipState FIELD field_48390 tooltip Lnet/minecraft/class_7919; FIELD field_48391 delay Ljava/time/Duration; FIELD field_48392 renderCheckTime J - FIELD field_48393 prevShouldRender Z + FIELD field_48393 lastShouldRender Z METHOD method_56137 getTooltip ()Lnet/minecraft/class_7919; METHOD method_56138 setTooltip (Lnet/minecraft/class_7919;)V ARG 1 tooltip diff --git a/mappings/net/minecraft/client/network/ClientPlayerEntity.mapping b/mappings/net/minecraft/client/network/ClientPlayerEntity.mapping index c3cc1144b3..e0e1abefa0 100644 --- a/mappings/net/minecraft/client/network/ClientPlayerEntity.mapping +++ b/mappings/net/minecraft/client/network/ClientPlayerEntity.mapping @@ -35,7 +35,7 @@ CLASS net/minecraft/class_746 net/minecraft/client/network/ClientPlayerEntity FIELD field_3944 networkHandler Lnet/minecraft/class_634; FIELD field_3945 activeHand Lnet/minecraft/class_1268; FIELD field_44911 nauseaIntensity F - FIELD field_44912 prevNauseaIntensity F + FIELD field_44912 lastNauseaIntensity F FIELD field_46188 limitedCraftingEnabled Z FIELD field_53040 lastHorizontalCollision Z FIELD field_54156 lastPlayerInput Lnet/minecraft/class_10185; diff --git a/mappings/net/minecraft/client/particle/Particle.mapping b/mappings/net/minecraft/client/particle/Particle.mapping index 42b5e456d6..83464a7a7b 100644 --- a/mappings/net/minecraft/client/particle/Particle.mapping +++ b/mappings/net/minecraft/client/particle/Particle.mapping @@ -11,7 +11,7 @@ CLASS net/minecraft/class_703 net/minecraft/client/particle/Particle FIELD field_28786 velocityMultiplier F FIELD field_28787 ascending Z FIELD field_36193 MAX_SQUARED_COLLISION_CHECK_DISTANCE D - FIELD field_3838 prevPosY D + FIELD field_3838 lastY D FIELD field_3839 angle F FIELD field_3840 random Lnet/minecraft/class_5819; FIELD field_3841 alpha F @@ -25,9 +25,9 @@ CLASS net/minecraft/class_703 net/minecraft/client/particle/Particle FIELD field_3851 world Lnet/minecraft/class_638; FIELD field_3852 velocityX D FIELD field_3854 y D - FIELD field_3856 prevPosZ D - FIELD field_3857 prevAngle F - FIELD field_3858 prevPosX D + FIELD field_3856 lastZ D + FIELD field_3857 lastAngle F + FIELD field_3858 lastX D FIELD field_3859 blue F FIELD field_3860 EMPTY_BOUNDING_BOX Lnet/minecraft/class_238; FIELD field_3861 red F diff --git a/mappings/net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen.mapping b/mappings/net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen.mapping index 0813da1870..cce548f109 100644 --- a/mappings/net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen.mapping +++ b/mappings/net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen.mapping @@ -70,7 +70,7 @@ CLASS net/minecraft/class_4419 net/minecraft/client/realms/gui/screen/RealmsSele FIELD field_45981 VIDEO_LINK_TEXTURES Lnet/minecraft/class_8666; FIELD field_45982 INFO_TOOLTIP_TEXT Lnet/minecraft/class_2561; FIELD field_45983 TRAILER_TOOLTIP_TEXT Lnet/minecraft/class_2561; - FIELD field_45984 prevClickTime J + FIELD field_45984 lastClickTime J FIELD field_45985 infoButton Lnet/minecraft/class_344; FIELD field_45986 trailerButton Lnet/minecraft/class_344; METHOD (Lnet/minecraft/class_4419;Lnet/minecraft/class_4890;)V diff --git a/mappings/net/minecraft/client/render/RenderTickCounter.mapping b/mappings/net/minecraft/client/render/RenderTickCounter.mapping index 191167c28c..674440d8be 100644 --- a/mappings/net/minecraft/client/render/RenderTickCounter.mapping +++ b/mappings/net/minecraft/client/render/RenderTickCounter.mapping @@ -14,7 +14,7 @@ CLASS net/minecraft/class_9779 net/minecraft/client/render/RenderTickCounter FIELD field_51959 tickDelta F FIELD field_51960 lastDuration F FIELD field_51961 tickDeltaBeforePause F - FIELD field_51962 prevTimeMillis J + FIELD field_51962 lastTimeMillis J FIELD field_51963 timeMillis J FIELD field_51964 tickTime F FIELD field_51965 targetMillisPerTick Lit/unimi/dsi/fastutil/floats/FloatUnaryOperator; diff --git a/mappings/net/minecraft/client/render/WorldRenderer.mapping b/mappings/net/minecraft/client/render/WorldRenderer.mapping index 2e9cf5842b..1412d347d9 100644 --- a/mappings/net/minecraft/client/render/WorldRenderer.mapping +++ b/mappings/net/minecraft/client/render/WorldRenderer.mapping @@ -35,7 +35,7 @@ CLASS net/minecraft/class_761 net/minecraft/client/render/WorldRenderer FIELD field_53081 framebufferSet Lnet/minecraft/class_9960; FIELD field_53900 TRANSPARENCY Lnet/minecraft/class_2960; FIELD field_53901 ENTITY_OUTLINE Lnet/minecraft/class_2960; - FIELD field_54160 prevTranslucencySortCameraPos Lnet/minecraft/class_2338; + FIELD field_54160 lastTranslucencySortCameraPos Lnet/minecraft/class_2338; FIELD field_54161 chunkIndex I FIELD field_54164 nearbyChunks Lit/unimi/dsi/fastutil/objects/ObjectArrayList; METHOD (Lnet/minecraft/class_310;Lnet/minecraft/class_898;Lnet/minecraft/class_824;Lnet/minecraft/class_4599;)V diff --git a/mappings/net/minecraft/client/render/debug/LightDebugRenderer.mapping b/mappings/net/minecraft/client/render/debug/LightDebugRenderer.mapping index dc3f1b75d2..da61cfd5a8 100644 --- a/mappings/net/minecraft/client/render/debug/LightDebugRenderer.mapping +++ b/mappings/net/minecraft/client/render/debug/LightDebugRenderer.mapping @@ -5,7 +5,7 @@ CLASS net/minecraft/class_8520 net/minecraft/client/render/debug/LightDebugRende FIELD field_44678 DEFAULT_SHAPE_COLOR Lorg/joml/Vector4f; FIELD field_44679 client Lnet/minecraft/class_310; FIELD field_44680 lightType Lnet/minecraft/class_1944; - FIELD field_44681 prevUpdateTime Ljava/time/Instant; + FIELD field_44681 lastUpdateTime Ljava/time/Instant; FIELD field_44682 data Lnet/minecraft/class_8520$class_8521; METHOD (Lnet/minecraft/class_310;Lnet/minecraft/class_1944;)V ARG 1 client diff --git a/mappings/net/minecraft/client/render/item/HeldItemRenderer.mapping b/mappings/net/minecraft/client/render/item/HeldItemRenderer.mapping index fe61786544..260a3ff1c7 100644 --- a/mappings/net/minecraft/client/render/item/HeldItemRenderer.mapping +++ b/mappings/net/minecraft/client/render/item/HeldItemRenderer.mapping @@ -30,9 +30,9 @@ CLASS net/minecraft/class_759 net/minecraft/client/render/item/HeldItemRenderer FIELD field_4047 mainHand Lnet/minecraft/class_1799; FIELD field_4048 offHand Lnet/minecraft/class_1799; FIELD field_4050 client Lnet/minecraft/class_310; - FIELD field_4051 prevEquipProgressOffHand F + FIELD field_4051 lastEquipProgressOffHand F FIELD field_4052 equipProgressOffHand F - FIELD field_4053 prevEquipProgressMainHand F + FIELD field_4053 lastEquipProgressMainHand F FIELD field_53067 mapRenderState Lnet/minecraft/class_10090; FIELD field_55548 itemModelManager Lnet/minecraft/class_10442; METHOD (Lnet/minecraft/class_310;Lnet/minecraft/class_898;Lnet/minecraft/class_918;Lnet/minecraft/class_10442;)V diff --git a/mappings/net/minecraft/client/util/BufferAllocator.mapping b/mappings/net/minecraft/client/util/BufferAllocator.mapping index 3722a9e031..1891a39ac3 100644 --- a/mappings/net/minecraft/client/util/BufferAllocator.mapping +++ b/mappings/net/minecraft/client/util/BufferAllocator.mapping @@ -6,7 +6,7 @@ CLASS net/minecraft/class_9799 net/minecraft/client/util/BufferAllocator FIELD field_52082 pointer J FIELD field_52083 size I FIELD field_52084 offset I - FIELD field_52085 prevOffset I + FIELD field_52085 lastOffset I FIELD field_52086 refCount I FIELD field_52087 clearCount I FIELD field_54266 MEMORY_POOL Lcom/mojang/jtracy/MemoryPool; diff --git a/mappings/net/minecraft/entity/Entity.mapping b/mappings/net/minecraft/entity/Entity.mapping index 6ceb127918..fd47551bda 100644 --- a/mappings/net/minecraft/entity/Entity.mapping +++ b/mappings/net/minecraft/entity/Entity.mapping @@ -165,7 +165,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity FIELD field_5962 SILENT Lnet/minecraft/class_2940; FIELD field_5964 fluidHeight Lit/unimi/dsi/fastutil/objects/Object2DoubleMap; FIELD field_5965 pitch F - FIELD field_5969 prevZ D + FIELD field_5969 lastZ D FIELD field_5971 lastRenderY D FIELD field_5974 random Lnet/minecraft/class_5819; FIELD field_5975 NAME_VISIBLE Lnet/minecraft/class_2940; @@ -176,7 +176,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity COMMENT {@link #setId(int)} calls. FIELD field_5979 passengerList Lcom/google/common/collect/ImmutableList; FIELD field_5981 uuidString Ljava/lang/String; - FIELD field_5982 prevYaw F + FIELD field_5982 lastYaw F FIELD field_5986 id I COMMENT The entity's network ID, used as a reference for synchronization over network. COMMENT This is not persistent across save and loads; use {@link #uuid} to identify @@ -194,14 +194,14 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity FIELD field_6000 submergedInWater Z FIELD field_6002 world Lnet/minecraft/class_1937; FIELD field_6003 nextStepSoundDistance F - FIELD field_6004 prevPitch F + FIELD field_6004 lastPitch F FIELD field_6005 boundingBox Lnet/minecraft/class_238; FIELD field_6007 velocityDirty Z FIELD field_6008 timeUntilRegen I FIELD field_6009 invulnerable Z FIELD field_6011 dataTracker Lnet/minecraft/class_2945; FIELD field_6012 age I - FIELD field_6014 prevX D + FIELD field_6014 lastX D FIELD field_6017 fallDistance F FIELD field_6018 portalCooldown I FIELD field_6021 uuid Ljava/util/UUID; @@ -211,7 +211,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity FIELD field_6031 yaw F FIELD field_6032 AIR Lnet/minecraft/class_2940; FIELD field_6034 vehicle Lnet/minecraft/class_1297; - FIELD field_6036 prevY D + FIELD field_6036 lastY D FIELD field_6037 velocityModified Z FIELD field_6038 lastRenderX D METHOD (Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V @@ -2190,16 +2190,16 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity ARG 2 newPos ARG 3 blockPos ARG 4 shape - METHOD method_63613 updatePrevPosition ()V - METHOD method_63614 updatePrevAngles ()V - METHOD method_63615 setPrevPositionAndAngles (Lnet/minecraft/class_243;FF)V + METHOD method_63613 updateLastPosition ()V + METHOD method_63614 updateLastAngles ()V + METHOD method_63615 setLastPositionAndAngles (Lnet/minecraft/class_243;FF)V ARG 1 pos ARG 2 yaw ARG 3 pitch - METHOD method_63617 setPrevAngles (FF)V - ARG 1 prevYaw - ARG 2 prevPitch - METHOD method_63618 setPrevPosition (Lnet/minecraft/class_243;)V + METHOD method_63617 setLastAngles (FF)V + ARG 1 lastYaw + ARG 2 lastPitch + METHOD method_63618 setLastPosition (Lnet/minecraft/class_243;)V ARG 1 pos METHOD method_64166 tickBlockCollision (Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V ARG 1 lastRenderPos diff --git a/mappings/net/minecraft/entity/LimbAnimator.mapping b/mappings/net/minecraft/entity/LimbAnimator.mapping index 7d6e67512d..ba9048326a 100644 --- a/mappings/net/minecraft/entity/LimbAnimator.mapping +++ b/mappings/net/minecraft/entity/LimbAnimator.mapping @@ -1,5 +1,5 @@ CLASS net/minecraft/class_8080 net/minecraft/entity/LimbAnimator - FIELD field_42109 prevSpeed F + FIELD field_42109 lastSpeed F FIELD field_42110 speed F FIELD field_42111 pos F FIELD field_52449 scale F diff --git a/mappings/net/minecraft/entity/LivingEntity.mapping b/mappings/net/minecraft/entity/LivingEntity.mapping index bbc4990be7..c367724e2e 100644 --- a/mappings/net/minecraft/entity/LivingEntity.mapping +++ b/mappings/net/minecraft/entity/LivingEntity.mapping @@ -36,7 +36,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity FIELD field_6214 POTION_SWIRLS_AMBIENT Lnet/minecraft/class_2940; FIELD field_6218 stuckArrowTimer I FIELD field_6219 STUCK_ARROW_COUNT Lnet/minecraft/class_2940; - FIELD field_6220 prevBodyYaw F + FIELD field_6220 lastBodyYaw F FIELD field_6222 itemUseTimeLeft I FIELD field_6226 lastDamageTime J FIELD field_6227 upwardSpeed F @@ -62,7 +62,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity FIELD field_6256 damageTracker Lnet/minecraft/class_1283; FIELD field_6257 LIVING_FLAGS Lnet/minecraft/class_2940; FIELD field_6258 attackingPlayer Lnet/minecraft/class_10583; - FIELD field_6259 prevHeadYaw F + FIELD field_6259 lastHeadYaw F FIELD field_6260 attributes Lnet/minecraft/class_5131; FIELD field_6261 riptideTicks I FIELD field_6264 lastLeaningPitch F diff --git a/mappings/net/minecraft/entity/ai/goal/BreakDoorGoal.mapping b/mappings/net/minecraft/entity/ai/goal/BreakDoorGoal.mapping index 43ed6164d7..7f6f1495c8 100644 --- a/mappings/net/minecraft/entity/ai/goal/BreakDoorGoal.mapping +++ b/mappings/net/minecraft/entity/ai/goal/BreakDoorGoal.mapping @@ -2,7 +2,7 @@ CLASS net/minecraft/class_1339 net/minecraft/entity/ai/goal/BreakDoorGoal FIELD field_16596 maxProgress I FIELD field_19003 difficultySufficientPredicate Ljava/util/function/Predicate; FIELD field_30202 MIN_MAX_PROGRESS I - FIELD field_6397 prevBreakProgress I + FIELD field_6397 lastBreakProgress I FIELD field_6398 breakProgress I METHOD (Lnet/minecraft/class_1308;ILjava/util/function/Predicate;)V ARG 1 mob diff --git a/mappings/net/minecraft/entity/ai/pathing/LandPathNodeMaker.mapping b/mappings/net/minecraft/entity/ai/pathing/LandPathNodeMaker.mapping index c61173c774..4fa2f2f737 100644 --- a/mappings/net/minecraft/entity/ai/pathing/LandPathNodeMaker.mapping +++ b/mappings/net/minecraft/entity/ai/pathing/LandPathNodeMaker.mapping @@ -49,7 +49,7 @@ CLASS net/minecraft/class_14 net/minecraft/entity/ai/pathing/LandPathNodeMaker ARG 2 y ARG 3 z ARG 4 maxYStep - ARG 5 prevFeetY + ARG 5 lastFeetY ARG 7 direction ARG 8 nodeType ARG 9 mutablePos @@ -94,6 +94,6 @@ CLASS net/minecraft/class_14 net/minecraft/entity/ai/pathing/LandPathNodeMaker ARG 2 y ARG 3 z ARG 4 maxYStep - ARG 5 prevFeetY + ARG 5 lastFeetY ARG 7 direction ARG 8 nodeType diff --git a/mappings/net/minecraft/entity/boss/WitherEntity.mapping b/mappings/net/minecraft/entity/boss/WitherEntity.mapping index 213cf86df0..dc31ff570d 100644 --- a/mappings/net/minecraft/entity/boss/WitherEntity.mapping +++ b/mappings/net/minecraft/entity/boss/WitherEntity.mapping @@ -13,8 +13,8 @@ CLASS net/minecraft/class_1528 net/minecraft/entity/boss/WitherEntity FIELD field_7091 skullCooldowns [I FIELD field_7092 chargedSkullCooldowns [I FIELD field_7093 bossBar Lnet/minecraft/class_3213; - FIELD field_7094 prevSideHeadYaws [F - FIELD field_7095 prevSideHeadPitches [F + FIELD field_7094 lastSideHeadYaws [F + FIELD field_7095 lastSideHeadPitches [F METHOD method_26904 createWitherAttributes ()Lnet/minecraft/class_5132$class_5133; METHOD method_61487 getSideHeadPitches ()[F METHOD method_61488 getSideHeadYaws ()[F @@ -49,7 +49,7 @@ CLASS net/minecraft/class_1528 net/minecraft/entity/boss/WitherEntity METHOD method_6884 getInvulnerableTimer ()I METHOD method_6885 onSummoned ()V METHOD method_6886 getNextAngle (FFF)F - ARG 1 prevAngle + ARG 1 lastAngle ARG 2 desiredAngle ARG 3 maxDifference CLASS class_1529 DescendAtHalfHealthGoal diff --git a/mappings/net/minecraft/entity/boss/dragon/EnderDragonEntity.mapping b/mappings/net/minecraft/entity/boss/dragon/EnderDragonEntity.mapping index 0845aa1b42..5a094f46fb 100644 --- a/mappings/net/minecraft/entity/boss/dragon/EnderDragonEntity.mapping +++ b/mappings/net/minecraft/entity/boss/dragon/EnderDragonEntity.mapping @@ -19,7 +19,7 @@ CLASS net/minecraft/class_1510 net/minecraft/entity/boss/dragon/EnderDragonEntit FIELD field_7016 fight Lnet/minecraft/class_2881; FIELD field_7017 head Lnet/minecraft/class_1508; FIELD field_7018 ticksUntilNextGrowl I - FIELD field_7019 prevWingPosition F + FIELD field_7019 lastWingPosition F FIELD field_7020 tail1 Lnet/minecraft/class_1508; FIELD field_7021 LOGGER Lorg/slf4j/Logger; FIELD field_7022 tail3 Lnet/minecraft/class_1508; diff --git a/mappings/net/minecraft/entity/effect/StatusEffectInstance.mapping b/mappings/net/minecraft/entity/effect/StatusEffectInstance.mapping index 03f376d8dc..2c1d07c935 100644 --- a/mappings/net/minecraft/entity/effect/StatusEffectInstance.mapping +++ b/mappings/net/minecraft/entity/effect/StatusEffectInstance.mapping @@ -131,7 +131,7 @@ CLASS net/minecraft/class_1293 net/minecraft/entity/effect/StatusEffectInstance COMMENT @see StatusEffect#fadeTicks(int) COMMENT @see StatusEffect#getFadeTicks FIELD field_47740 factor F - FIELD field_47741 prevFactor F + FIELD field_47741 lastFactor F METHOD method_55658 copyFrom (Lnet/minecraft/class_1293$class_9063;)V ARG 1 fading METHOD method_55659 skipFading (Lnet/minecraft/class_1293;)V diff --git a/mappings/net/minecraft/entity/mob/GuardianEntity.mapping b/mappings/net/minecraft/entity/mob/GuardianEntity.mapping index e2e6de5511..4163281e09 100644 --- a/mappings/net/minecraft/entity/mob/GuardianEntity.mapping +++ b/mappings/net/minecraft/entity/mob/GuardianEntity.mapping @@ -4,10 +4,10 @@ CLASS net/minecraft/class_1577 net/minecraft/entity/mob/GuardianEntity FIELD field_7281 spikesExtensionRate F FIELD field_7282 beamTicks I FIELD field_7283 flopping Z - FIELD field_7284 prevTailAngle F + FIELD field_7284 lastTailAngle F FIELD field_7285 spikesExtension F FIELD field_7286 tailAngle F - FIELD field_7287 prevSpikesExtension F + FIELD field_7287 lastSpikesExtension F FIELD field_7288 cachedBeamTarget Lnet/minecraft/class_1309; FIELD field_7289 wanderGoal Lnet/minecraft/class_1379; FIELD field_7290 BEAM_TARGET_ID Lnet/minecraft/class_2940; diff --git a/mappings/net/minecraft/entity/mob/ShulkerEntity.mapping b/mappings/net/minecraft/entity/mob/ShulkerEntity.mapping index b7128b2fa6..756c9ed289 100644 --- a/mappings/net/minecraft/entity/mob/ShulkerEntity.mapping +++ b/mappings/net/minecraft/entity/mob/ShulkerEntity.mapping @@ -1,13 +1,13 @@ CLASS net/minecraft/class_1606 net/minecraft/entity/mob/ShulkerEntity FIELD field_33765 SOUTH_VECTOR Lorg/joml/Vector3f; FIELD field_7337 openProgress F - FIELD field_7339 prevOpenProgress F + FIELD field_7339 lastOpenProgress F FIELD field_7340 teleportLerpTimer I FIELD field_7341 COVERED_ARMOR_MODIFIER_ID Lnet/minecraft/class_2960; FIELD field_7342 COVERED_ARMOR_BONUS Lnet/minecraft/class_1322; FIELD field_7343 COLOR Lnet/minecraft/class_2940; FIELD field_7344 ATTACHED_FACE Lnet/minecraft/class_2940; - FIELD field_7345 prevAttachedBlock Lnet/minecraft/class_2338; + FIELD field_7345 lastAttachedBlock Lnet/minecraft/class_2338; FIELD field_7346 PEEK_AMOUNT Lnet/minecraft/class_2940; METHOD method_24350 canStay (Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z ARG 1 pos @@ -26,7 +26,7 @@ CLASS net/minecraft/class_1606 net/minecraft/entity/mob/ShulkerEntity METHOD method_33347 calculateBoundingBox (FLnet/minecraft/class_2350;FFLnet/minecraft/class_243;)Lnet/minecraft/class_238; ARG 0 scale ARG 1 facing - ARG 2 prevExtraLength + ARG 2 lastExtraLength ARG 3 extraLength ARG 4 pos METHOD method_33348 tryAttachOrTeleport ()V diff --git a/mappings/net/minecraft/entity/passive/AllayEntity.mapping b/mappings/net/minecraft/entity/passive/AllayEntity.mapping index 2bcbfac052..eaa77e4eb7 100644 --- a/mappings/net/minecraft/entity/passive/AllayEntity.mapping +++ b/mappings/net/minecraft/entity/passive/AllayEntity.mapping @@ -5,7 +5,7 @@ CLASS net/minecraft/class_7298 net/minecraft/entity/passive/AllayEntity FIELD field_38402 inventory Lnet/minecraft/class_1277; FIELD field_38403 MEMORY_MODULES Lcom/google/common/collect/ImmutableList; FIELD field_38935 itemHoldAnimationTicks F - FIELD field_38936 prevItemHoldAnimationTicks F + FIELD field_38936 lastItemHoldAnimationTicks F FIELD field_38937 THROW_SOUND_PITCHES Lcom/google/common/collect/ImmutableList; FIELD field_39045 LOGGER Lorg/slf4j/Logger; FIELD field_39465 DUPLICATION_COOLDOWN I @@ -17,7 +17,7 @@ CLASS net/minecraft/class_7298 net/minecraft/entity/passive/AllayEntity FIELD field_39471 duplicationCooldown J FIELD field_39472 danceTicks F FIELD field_39473 spinningAnimationTicks F - FIELD field_39474 prevSpinningAnimationTicks F + FIELD field_39474 lastSpinningAnimationTicks F FIELD field_44596 vibrationListenerData Lnet/minecraft/class_8514$class_8515; METHOD method_42654 isItemPickupCoolingDown ()Z METHOD method_42655 createAllayAttributes ()Lnet/minecraft/class_5132$class_5133; diff --git a/mappings/net/minecraft/entity/passive/CatEntity.mapping b/mappings/net/minecraft/entity/passive/CatEntity.mapping index b59026cf52..9735beadab 100644 --- a/mappings/net/minecraft/entity/passive/CatEntity.mapping +++ b/mappings/net/minecraft/entity/passive/CatEntity.mapping @@ -3,11 +3,11 @@ CLASS net/minecraft/class_1451 net/minecraft/entity/passive/CatEntity FIELD field_16284 IN_SLEEPING_POSE Lnet/minecraft/class_2940; FIELD field_16285 COLLAR_COLOR Lnet/minecraft/class_2940; FIELD field_16286 headDownAnimation F - FIELD field_16287 prevHeadDownAnimation F + FIELD field_16287 lastHeadDownAnimation F FIELD field_16288 tailCurlAnimation F - FIELD field_16289 prevTailCurlAnimation F + FIELD field_16289 lastTailCurlAnimation F FIELD field_16290 sleepAnimation F - FIELD field_16291 prevSleepAnimation F + FIELD field_16291 lastSleepAnimation F FIELD field_16292 HEAD_DOWN Lnet/minecraft/class_2940; FIELD field_30310 CROUCHING_SPEED D FIELD field_30311 NORMAL_SPEED D diff --git a/mappings/net/minecraft/entity/passive/ChickenEntity.mapping b/mappings/net/minecraft/entity/passive/ChickenEntity.mapping index 5d6e8ea0ed..d8a5fcd75b 100644 --- a/mappings/net/minecraft/entity/passive/ChickenEntity.mapping +++ b/mappings/net/minecraft/entity/passive/ChickenEntity.mapping @@ -1,8 +1,8 @@ CLASS net/minecraft/class_1428 net/minecraft/entity/passive/ChickenEntity FIELD field_47770 BABY_BASE_DIMENSIONS Lnet/minecraft/class_4048; - FIELD field_6736 prevFlapProgress F + FIELD field_6736 lastFlapProgress F FIELD field_6737 flapSpeed F - FIELD field_6738 prevMaxWingDeviation F + FIELD field_6738 lastMaxWingDeviation F FIELD field_6739 eggLayTime I FIELD field_6740 hasJockey Z FIELD field_6741 flapProgress F diff --git a/mappings/net/minecraft/entity/passive/ParrotEntity.mapping b/mappings/net/minecraft/entity/passive/ParrotEntity.mapping index d03ade0d74..3e0ce97e9f 100644 --- a/mappings/net/minecraft/entity/passive/ParrotEntity.mapping +++ b/mappings/net/minecraft/entity/passive/ParrotEntity.mapping @@ -7,8 +7,8 @@ CLASS net/minecraft/class_1453 net/minecraft/entity/passive/ParrotEntity FIELD field_6823 songPlaying Z FIELD field_6824 flapSpeed F FIELD field_6826 VARIANT Lnet/minecraft/class_2940; - FIELD field_6827 prevMaxWingDeviation F - FIELD field_6829 prevFlapProgress F + FIELD field_6827 lastMaxWingDeviation F + FIELD field_6829 lastFlapProgress F METHOD method_20667 canSpawn (Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z ARG 0 type ARG 1 world diff --git a/mappings/net/minecraft/entity/passive/SquidEntity.mapping b/mappings/net/minecraft/entity/passive/SquidEntity.mapping index e9944da56d..daa7ddbf0d 100644 --- a/mappings/net/minecraft/entity/passive/SquidEntity.mapping +++ b/mappings/net/minecraft/entity/passive/SquidEntity.mapping @@ -1,16 +1,16 @@ CLASS net/minecraft/class_1477 net/minecraft/entity/passive/SquidEntity FIELD field_54298 swimVec Lnet/minecraft/class_243; - FIELD field_6900 prevTentacleAngle F + FIELD field_6900 lastTentacleAngle F FIELD field_6901 swimVelocityScale F COMMENT A scale factor for the squid's swimming speed. COMMENT COMMENT Gets reset to 1 at the beginning of each thrust and gradually decreases to make the squid lurch around. - FIELD field_6902 prevThrustTimer F + FIELD field_6902 lastThrustTimer F COMMENT This serves no real purpose. FIELD field_6903 rollAngle F FIELD field_6904 tentacleAngle F - FIELD field_6905 prevTiltAngle F - FIELD field_6906 prevRollAngle F + FIELD field_6905 lastTiltAngle F + FIELD field_6906 lastRollAngle F FIELD field_6907 tiltAngle F FIELD field_6908 thrustTimer F COMMENT Timer between thrusts as the squid swims. Represented as an angle from 0 to 2PI. diff --git a/mappings/net/minecraft/entity/player/PlayerEntity.mapping b/mappings/net/minecraft/entity/player/PlayerEntity.mapping index 5e00dac264..68decf7c39 100644 --- a/mappings/net/minecraft/entity/player/PlayerEntity.mapping +++ b/mappings/net/minecraft/entity/player/PlayerEntity.mapping @@ -29,10 +29,10 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity FIELD field_7498 playerScreenHandler Lnet/minecraft/class_1723; FIELD field_7499 capeZ D FIELD field_7500 capeX D - FIELD field_7502 prevCapeY D + FIELD field_7502 lastCapeY D FIELD field_7503 abilities Lnet/minecraft/class_1656; FIELD field_7504 experiencePickUpDelay I - FIELD field_7505 prevStrideDistance F + FIELD field_7505 lastStrideDistance F FIELD field_7506 RIGHT_SHOULDER_ENTITY Lnet/minecraft/class_2940; FIELD field_7507 gameProfile Lcom/mojang/authlib/GameProfile; FIELD field_7508 lastPlayedLevelUpSoundTime I @@ -44,9 +44,9 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity FIELD field_7518 PLAYER_MODEL_PARTS Lnet/minecraft/class_2940; FIELD field_7520 experienceLevel I FIELD field_7521 capeY D - FIELD field_7522 prevCapeZ D + FIELD field_7522 lastCapeZ D FIELD field_7523 reducedDebugInfo Z - FIELD field_7524 prevCapeX D + FIELD field_7524 lastCapeX D FIELD field_7525 selectedItem Lnet/minecraft/class_1799; METHOD (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;FLcom/mojang/authlib/GameProfile;)V ARG 1 world diff --git a/mappings/net/minecraft/entity/projectile/ProjectileEntity.mapping b/mappings/net/minecraft/entity/projectile/ProjectileEntity.mapping index 25a71408c3..9fb9a3206e 100644 --- a/mappings/net/minecraft/entity/projectile/ProjectileEntity.mapping +++ b/mappings/net/minecraft/entity/projectile/ProjectileEntity.mapping @@ -26,7 +26,7 @@ CLASS net/minecraft/class_1676 net/minecraft/entity/projectile/ProjectileEntity METHOD method_26958 canHit (Lnet/minecraft/class_1297;)Z ARG 1 entity METHOD method_26960 updateRotation (FF)F - ARG 0 prevRot + ARG 0 lastRot ARG 1 newRot METHOD method_26961 shouldLeaveOwner ()Z METHOD method_26962 updateRotation ()V diff --git a/mappings/net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo.mapping b/mappings/net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo.mapping index 7745bb9928..4a909c12db 100644 --- a/mappings/net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo.mapping +++ b/mappings/net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo.mapping @@ -1,9 +1,9 @@ CLASS net/minecraft/class_8589 net/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo FIELD comp_1556 gameMode Lnet/minecraft/class_1934; - FIELD comp_1557 prevGameMode Lnet/minecraft/class_1934; + FIELD comp_1557 lastGameMode Lnet/minecraft/class_1934; METHOD (Lnet/minecraft/class_9129;)V ARG 1 buf METHOD comp_1556 gameMode ()Lnet/minecraft/class_1934; - METHOD comp_1557 prevGameMode ()Lnet/minecraft/class_1934; + METHOD comp_1557 lastGameMode ()Lnet/minecraft/class_1934; METHOD method_52274 write (Lnet/minecraft/class_9129;)V ARG 1 buf diff --git a/mappings/net/minecraft/server/MinecraftServer.mapping b/mappings/net/minecraft/server/MinecraftServer.mapping index 2525cd2025..7af68d84d2 100644 --- a/mappings/net/minecraft/server/MinecraftServer.mapping +++ b/mappings/net/minecraft/server/MinecraftServer.mapping @@ -82,7 +82,7 @@ CLASS net/minecraft/server/MinecraftServer FIELD field_47145 OVERLOAD_WARNING_INTERVAL_NANOS J FIELD field_47147 PLAYER_SAMPLE_UPDATE_INTERVAL_NANOS J FIELD field_47148 PREPARE_START_REGION_TICK_DELAY_NANOS J - FIELD field_48773 prevFullTickLogTime J + FIELD field_48773 lastFullTickLogTime J FIELD field_48774 tasksStartTime J FIELD field_48775 waitTime J FIELD field_51466 brewingRecipeRegistry Lnet/minecraft/class_1845; diff --git a/mappings/net/minecraft/server/network/ServerPlayNetworkHandler.mapping b/mappings/net/minecraft/server/network/ServerPlayNetworkHandler.mapping index d1fb39c4eb..7e3c49c32d 100644 --- a/mappings/net/minecraft/server/network/ServerPlayNetworkHandler.mapping +++ b/mappings/net/minecraft/server/network/ServerPlayNetworkHandler.mapping @@ -15,7 +15,7 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan FIELD field_14135 lastTickMovePacketsCount I FIELD field_14137 vehicleFloatingTicks I FIELD field_14138 floatingTicks I - FIELD field_14139 prevTeleportCheckTicks I + FIELD field_14139 lastTeleportCheckTicks I FIELD field_14140 player Lnet/minecraft/class_3222; FIELD field_14141 updatedRiddenY D FIELD field_14142 lastTickRiddenZ D diff --git a/mappings/net/minecraft/test/StructureTestListener.mapping b/mappings/net/minecraft/test/StructureTestListener.mapping index 541eaf3835..a40041c1dc 100644 --- a/mappings/net/minecraft/test/StructureTestListener.mapping +++ b/mappings/net/minecraft/test/StructureTestListener.mapping @@ -40,7 +40,7 @@ CLASS net/minecraft/class_5624 net/minecraft/test/StructureTestListener METHOD method_56244 retry (Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;Z)V ARG 1 state ARG 2 context - ARG 3 prevPassed + ARG 3 lastPassed METHOD method_61099 getBeaconPos (Lnet/minecraft/class_4517;)Lnet/minecraft/class_2338; ARG 0 state METHOD method_61100 placeAboveBeacon (Lnet/minecraft/class_4517;Lnet/minecraft/class_2248;)V diff --git a/mappings/net/minecraft/test/TestListener.mapping b/mappings/net/minecraft/test/TestListener.mapping index f34d416639..716929103a 100644 --- a/mappings/net/minecraft/test/TestListener.mapping +++ b/mappings/net/minecraft/test/TestListener.mapping @@ -8,6 +8,6 @@ CLASS net/minecraft/class_4518 net/minecraft/test/TestListener ARG 1 test ARG 2 context METHOD method_56216 onRetry (Lnet/minecraft/class_4517;Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)V - ARG 1 prevState + ARG 1 lastState ARG 2 nextState ARG 3 context diff --git a/mappings/net/minecraft/util/math/LongJumpUtil.mapping b/mappings/net/minecraft/util/math/LongJumpUtil.mapping index 1759547750..aa30b1cdab 100644 --- a/mappings/net/minecraft/util/math/LongJumpUtil.mapping +++ b/mappings/net/minecraft/util/math/LongJumpUtil.mapping @@ -2,7 +2,7 @@ CLASS net/minecraft/class_8946 net/minecraft/util/math/LongJumpUtil METHOD method_54989 isPathClear (Lnet/minecraft/class_1308;Lnet/minecraft/class_4048;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z ARG 0 entity ARG 1 dimensions - ARG 2 prevPos + ARG 2 lastPos ARG 3 nextPos METHOD method_54990 getJumpingVelocity (Lnet/minecraft/class_1308;Lnet/minecraft/class_243;FIZ)Ljava/util/Optional; ARG 0 entity From 3999e37803a2b4281ce2906a2d0cbe557f66fac3 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 10 Jan 2025 17:00:39 +0500 Subject: [PATCH 2/2] Add 'Client' suffix to some 'World' methods to indicate that they only work on the client (#4052) * change: add 'Client' suffix to some 'World' methods to indicate that they only work on the client * change(World#playSound): explain the behavior on client vs. server in more detail * Add Javadocs to Worldadd(Important)ParticlesClient --- mappings/net/minecraft/world/World.mapping | 42 ++++++++++++++++--- .../net/minecraft/world/WorldAccess.mapping | 6 ++- 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/mappings/net/minecraft/world/World.mapping b/mappings/net/minecraft/world/World.mapping index 0cc06a7db5..e1a3a58f76 100644 --- a/mappings/net/minecraft/world/World.mapping +++ b/mappings/net/minecraft/world/World.mapping @@ -44,7 +44,11 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 1 pos ARG 2 old ARG 3 updated - METHOD method_17452 addImportantParticle (Lnet/minecraft/class_2394;ZDDDDDD)V + METHOD method_17452 addImportantParticleClient (Lnet/minecraft/class_2394;ZDDDDDD)V + COMMENT Adds an important particle to the client's world renderer. Important particles get added even if the Particles graphics option is set to Minimal + COMMENT Does nothing on the server. + COMMENT + COMMENT @see ServerWorld#spawnParticles ARG 1 parameters ARG 2 force ARG 3 x @@ -135,6 +139,10 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World METHOD method_43126 getSpawnPos ()Lnet/minecraft/class_2338; METHOD method_43127 getSpawnAngle ()F METHOD method_43128 playSound (Lnet/minecraft/class_1297;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V + COMMENT Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. + COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself. + ARG 1 source + COMMENT the player that caused this sound, or {@code null} ARG 2 x ARG 4 y ARG 6 z @@ -143,12 +151,16 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 10 volume ARG 11 pitch METHOD method_43129 playSoundFromEntity (Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V + COMMENT Plays a sound caused by a source at the provided entity's position. On the client, the sound will only play if the source is the same as the client's player. + COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself. + ARG 1 source + COMMENT the player that caused this sound, or {@code null} ARG 2 entity ARG 3 sound ARG 4 category ARG 5 volume ARG 6 pitch - METHOD method_45446 playSoundAtBlockCenter (Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V + METHOD method_45446 playSoundAtBlockCenterClient (Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V ARG 1 pos ARG 2 sound ARG 3 category @@ -184,6 +196,10 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World METHOD method_47576 (Ljava/util/function/Predicate;Ljava/util/List;ILnet/minecraft/class_5575;Lnet/minecraft/class_1297;)Lnet/minecraft/class_7927$class_7928; ARG 4 entity METHOD method_47967 playSound (Lnet/minecraft/class_1297;DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFJ)V + COMMENT Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. + COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself. + ARG 1 source + COMMENT the player that caused this sound, or {@code null} ARG 2 x ARG 4 y ARG 6 z @@ -203,7 +219,7 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 6 z ARG 8 sound ARG 9 category - METHOD method_55116 playSoundFromEntity (Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V + METHOD method_55116 playSoundFromEntityClient (Lnet/minecraft/class_1297;Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V ARG 1 entity ARG 2 sound ARG 3 category @@ -276,7 +292,10 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World METHOD method_8442 getSkyAngleRadians (F)F ARG 1 tickDelta METHOD method_8449 playSoundFromEntity (Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V + COMMENT Plays a sound caused by a source at the provided entity's position. On the client, the sound will only play if the source is the same as the client's player. + COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself. ARG 1 source + COMMENT the player that caused this sound, or {@code null} ARG 2 entity ARG 3 sound ARG 4 category @@ -314,7 +333,10 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 2 block METHOD method_8458 isSavingDisabled ()Z METHOD method_8465 playSound (Lnet/minecraft/class_1297;DDDLnet/minecraft/class_6880;Lnet/minecraft/class_3419;FFJ)V + COMMENT Plays a sound caused by a source. On the client, the sound will only play if the source is the same as the client's player. + COMMENT On the server, sound packets will be sent to players around the source, excluding the source itself. ARG 1 source + COMMENT the player that caused this sound, or {@code null} ARG 2 x ARG 4 y ARG 6 z @@ -323,7 +345,11 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 10 volume ARG 11 pitch ARG 12 seed - METHOD method_8466 addParticle (Lnet/minecraft/class_2394;ZZDDDDDD)V + METHOD method_8466 addParticleClient (Lnet/minecraft/class_2394;ZZDDDDDD)V + COMMENT Adds a particle to the client's world renderer. + COMMENT Does nothing on the server. + COMMENT + COMMENT @see ServerWorld#spawnParticles ARG 1 parameters ARG 2 force ARG 3 canSpawnOnMinimal @@ -349,7 +375,7 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 1 pos METHOD method_8478 getThunderGradient (F)F ARG 1 delta - METHOD method_8486 playSound (DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V + METHOD method_8486 playSoundClient (DDDLnet/minecraft/class_3414;Lnet/minecraft/class_3419;FFZ)V ARG 1 x ARG 3 y ARG 5 z @@ -366,7 +392,11 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World ARG 1 pos ARG 2 sourceBlock ARG 3 orientation - METHOD method_8494 addImportantParticle (Lnet/minecraft/class_2394;DDDDDD)V + METHOD method_8494 addImportantParticleClient (Lnet/minecraft/class_2394;DDDDDD)V + COMMENT Adds an important particle to the client's world renderer. Important particles get added even if the Particles graphics option is set to Minimal + COMMENT Does nothing on the server. + COMMENT + COMMENT @see ServerWorld#spawnParticles ARG 1 parameters ARG 2 x ARG 4 y diff --git a/mappings/net/minecraft/world/WorldAccess.mapping b/mappings/net/minecraft/world/WorldAccess.mapping index 1e1d2ec5d8..fdb850fc70 100644 --- a/mappings/net/minecraft/world/WorldAccess.mapping +++ b/mappings/net/minecraft/world/WorldAccess.mapping @@ -46,7 +46,11 @@ CLASS net/minecraft/class_1936 net/minecraft/world/WorldAccess METHOD method_8401 getLevelProperties ()Lnet/minecraft/class_5217; METHOD method_8404 getLocalDifficulty (Lnet/minecraft/class_2338;)Lnet/minecraft/class_1266; ARG 1 pos - METHOD method_8406 addParticle (Lnet/minecraft/class_2394;DDDDDD)V + METHOD method_8406 addParticleClient (Lnet/minecraft/class_2394;DDDDDD)V + COMMENT Adds a particle to the client's world renderer. + COMMENT Does nothing on the server. + COMMENT + COMMENT @see ServerWorld#spawnParticles ARG 1 parameters ARG 2 x ARG 4 y