From 066f683c25896d099f800d52a85fc64f09514e20 Mon Sep 17 00:00:00 2001
From: Octol1ttle <l1ttleofficial@outlook.com>
Date: Thu, 23 Jan 2025 03:19:41 +0500
Subject: [PATCH] start 25w04a (#4095)

---
 .../type/BlocksAttacksComponent.mapping       | 32 +++++++++++++++++++
 .../fix/ThrownPotionSplitFix.mapping          |  1 +
 .../thrown/LingeringPotionEntity.mapping      |  5 +++
 .../projectile/thrown/PotionEntity.mapping    | 18 +++++++++++
 .../thrown/SplashPotionEntity.mapping         |  5 +++
 5 files changed, 61 insertions(+)
 create mode 100644 mappings/net/minecraft/component/type/BlocksAttacksComponent.mapping
 create mode 100644 mappings/net/minecraft/datafixer/fix/ThrownPotionSplitFix.mapping
 create mode 100644 mappings/net/minecraft/entity/projectile/thrown/LingeringPotionEntity.mapping
 create mode 100644 mappings/net/minecraft/entity/projectile/thrown/SplashPotionEntity.mapping

diff --git a/mappings/net/minecraft/component/type/BlocksAttacksComponent.mapping b/mappings/net/minecraft/component/type/BlocksAttacksComponent.mapping
new file mode 100644
index 0000000000..3c359e4f60
--- /dev/null
+++ b/mappings/net/minecraft/component/type/BlocksAttacksComponent.mapping
@@ -0,0 +1,32 @@
+CLASS net/minecraft/class_10707 net/minecraft/component/type/BlocksAttacksComponent
+	FIELD field_56301 CODEC Lcom/mojang/serialization/Codec;
+	FIELD field_56302 PACKET_CODEC Lnet/minecraft/class_9139;
+	METHOD method_67198 convertCooldownToTicks (F)I
+		ARG 1 cooldownSeconds
+	METHOD method_67199 playBlockSound (Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
+		ARG 1 world
+		ARG 2 from
+	METHOD method_67200 applyShieldCooldown (Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;FLnet/minecraft/class_1799;)V
+		ARG 1 world
+		ARG 2 affectedEntity
+		ARG 3 cooldownSeconds
+		ARG 4 stack
+	METHOD method_67201 (Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_6880;)V
+		ARG 2 sound
+	METHOD method_67204 onShieldHit (Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;F)V
+		ARG 1 world
+		ARG 2 stack
+		ARG 3 entity
+		ARG 4 hand
+		ARG 5 itemDamage
+	METHOD method_67205 (Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_6880;)V
+		ARG 2 sound
+	CLASS class_10708 DamageReduction
+		FIELD field_56303 CODEC Lcom/mojang/serialization/Codec;
+		FIELD field_56304 PACKET_CODEC Lnet/minecraft/class_9139;
+		METHOD method_67206 (Lnet/minecraft/class_1282;F)F
+			ARG 1 source
+	CLASS class_10709 ItemDamage
+		FIELD field_56306 CODEC Lcom/mojang/serialization/Codec;
+		FIELD field_56307 PACKET_CODEC Lnet/minecraft/class_9139;
+		METHOD method_67208 calculate (F)I
diff --git a/mappings/net/minecraft/datafixer/fix/ThrownPotionSplitFix.mapping b/mappings/net/minecraft/datafixer/fix/ThrownPotionSplitFix.mapping
new file mode 100644
index 0000000000..71d81e8cb8
--- /dev/null
+++ b/mappings/net/minecraft/datafixer/fix/ThrownPotionSplitFix.mapping
@@ -0,0 +1 @@
+CLASS net/minecraft/class_10680 net/minecraft/datafixer/fix/ThrownPotionSplitFix
diff --git a/mappings/net/minecraft/entity/projectile/thrown/LingeringPotionEntity.mapping b/mappings/net/minecraft/entity/projectile/thrown/LingeringPotionEntity.mapping
new file mode 100644
index 0000000000..41feb9fc7d
--- /dev/null
+++ b/mappings/net/minecraft/entity/projectile/thrown/LingeringPotionEntity.mapping
@@ -0,0 +1,5 @@
+CLASS net/minecraft/class_10690 net/minecraft/entity/projectile/thrown/LingeringPotionEntity
+	METHOD <init> (Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
+		ARG 1 world
+		ARG 2 owner
+		ARG 3 stack
diff --git a/mappings/net/minecraft/entity/projectile/thrown/PotionEntity.mapping b/mappings/net/minecraft/entity/projectile/thrown/PotionEntity.mapping
index ed3ce0fd0a..9f7d26d84e 100644
--- a/mappings/net/minecraft/entity/projectile/thrown/PotionEntity.mapping
+++ b/mappings/net/minecraft/entity/projectile/thrown/PotionEntity.mapping
@@ -1,6 +1,24 @@
 CLASS net/minecraft/class_1686 net/minecraft/entity/projectile/thrown/PotionEntity
+	FIELD field_30668 waterPotionExplosionRadiusSquared D
 	FIELD field_40737 AFFECTED_BY_WATER Ljava/util/function/Predicate;
+	METHOD <init> (Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
+		ARG 1 type
+		ARG 2 world
+		ARG 3 x
+		ARG 5 y
+		ARG 7 z
+		ARG 9 stack
+	METHOD <init> (Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
+		ARG 1 type
+		ARG 2 world
+		ARG 3 owner
+		ARG 4 stack
 	METHOD method_46401 (Lnet/minecraft/class_1309;)Z
 		ARG 0 entity
+	METHOD method_67148 spawnAreaEffectCloud (Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_1297;)V
+		ARG 1 world
+		ARG 2 stack
+		ARG 3 entityHit
+	METHOD method_67149 explodeWaterPotion (Lnet/minecraft/class_3218;)V
 	METHOD method_7499 extinguishFire (Lnet/minecraft/class_2338;)V
 		ARG 1 pos
diff --git a/mappings/net/minecraft/entity/projectile/thrown/SplashPotionEntity.mapping b/mappings/net/minecraft/entity/projectile/thrown/SplashPotionEntity.mapping
new file mode 100644
index 0000000000..7211114684
--- /dev/null
+++ b/mappings/net/minecraft/entity/projectile/thrown/SplashPotionEntity.mapping
@@ -0,0 +1,5 @@
+CLASS net/minecraft/class_10691 net/minecraft/entity/projectile/thrown/SplashPotionEntity
+	METHOD <init> (Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
+		ARG 1 world
+	METHOD <init> (Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
+		ARG 1 world