Skip to content

Commit

Permalink
map the dragon idk
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Jul 8, 2024
1 parent 8e74a58 commit 81cb7bc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ CLASS net/minecraft/unmapped/C_bsmypcfq net/minecraft/entity/boss/dragon/EnderDr
ARG 2 tickDelta
METHOD m_pzbmfkfv destroyBlocks (Lnet/minecraft/unmapped/C_hbcjzgoe;)Z
ARG 1 box
METHOD m_qrovnyxu damageCollidingEntities (Lnet/minecraft/unmapped/C_bdwnwhiu;Ljava/util/List;)V
ARG 2 collisions
METHOD m_qurogbnd damageLivingEntities (Ljava/util/List;)V
ARG 1 entities
METHOD m_rmzrqzqk getFightOrigin ()Lnet/minecraft/unmapped/C_hynzadkk;
Expand Down

3 comments on commit 81cb7bc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With commit 81cb7bc, 237 file(s) were updated with 2223 line(s) added and 2056 removed compared to the latest Quilt Mappings version.

View the diff here (1/3):
diff -bur namedTargetSrc/net/minecraft/advancement/AdvancementRewards.java namedSrc/net/minecraft/advancement/AdvancementRewards.java
--- namedTargetSrc/net/minecraft/advancement/AdvancementRewards.java	2024-07-08 01:49:13.432389131 +0000
+++ namedSrc/net/minecraft/advancement/AdvancementRewards.java	2024-07-08 01:48:03.060172100 +0000
@@ -68,7 +68,7 @@
                      SoundEvents.ENTITY_ITEM_PICKUP,
                      SoundCategory.PLAYERS,
                      0.2F,
-                     ((player.m_dlwxaobh().nextFloat() - player.m_dlwxaobh().nextFloat()) * 0.7F + 1.0F) * 2.0F
+                     ((player.getRandom().nextFloat() - player.getRandom().nextFloat()) * 0.7F + 1.0F) * 2.0F
                   );
                bl = true;
             } else {
diff -bur namedTargetSrc/net/minecraft/block/AbstractFireBlock.java namedSrc/net/minecraft/block/AbstractFireBlock.java
--- namedTargetSrc/net/minecraft/block/AbstractFireBlock.java	2024-07-08 01:49:13.232386949 +0000
+++ namedSrc/net/minecraft/block/AbstractFireBlock.java	2024-07-08 01:48:02.840171529 +0000
@@ -173,7 +173,7 @@
       if (!entity.isFireImmune()) {
          entity.setFireTicks(entity.getFireTicks() + 1);
          if (entity.getFireTicks() == 0) {
-            entity.m_xbkkrydd(8.0F);
+            entity.setOnFireForSeconds(8.0F);
          }
       }
 
diff -bur namedTargetSrc/net/minecraft/block/BeehiveBlock.java namedSrc/net/minecraft/block/BeehiveBlock.java
--- namedTargetSrc/net/minecraft/block/BeehiveBlock.java	2024-07-08 01:49:13.392388695 +0000
+++ namedSrc/net/minecraft/block/BeehiveBlock.java	2024-07-08 01:48:03.020171996 +0000
@@ -126,7 +126,7 @@
    public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) {
       super.afterBreak(world, player, pos, state, blockEntity, stack);
       if (!world.isClient && blockEntity instanceof BeehiveBlockEntity lv) {
-         if (!EnchantmentHelper.m_ruiicrds(stack, EnchantmentTags.PREVENTS_BEE_SPAWNS_WHEN_MINING)) {
+         if (!EnchantmentHelper.hasTag(stack, EnchantmentTags.PREVENTS_BEE_SPAWNS_WHEN_MINING)) {
             lv.angerBees(player, state, BeehiveBlockEntity.BeeState.EMERGENCY);
             world.updateComparators(pos, this);
             this.angerNearbyBees(world, pos);
diff -bur namedTargetSrc/net/minecraft/block/Block.java namedSrc/net/minecraft/block/Block.java
--- namedTargetSrc/net/minecraft/block/Block.java	2024-07-08 01:49:13.512390004 +0000
+++ namedSrc/net/minecraft/block/Block.java	2024-07-08 01:48:03.144172318 +0000
@@ -902,7 +902,7 @@
     * @mapping {@literal named dropConditionalExperience Lnet/minecraft/block/Block;dropConditionalExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/int_provider/IntProvider;)V}
     */
    protected void dropConditionalExperience(ServerWorld world, BlockPos pos, ItemStack stack, IntProvider experienceProvider) {
-      int i = EnchantmentHelper.m_mcehpxsn(world, stack, experienceProvider.get(world.getRandom()));
+      int i = EnchantmentHelper.getBlockExperience(world, stack, experienceProvider.get(world.getRandom()));
       if (i > 0) {
          this.dropExperience(world, pos, i);
       }
diff -bur namedTargetSrc/net/minecraft/block/CampfireBlock.java namedSrc/net/minecraft/block/CampfireBlock.java
--- namedTargetSrc/net/minecraft/block/CampfireBlock.java	2024-07-08 01:49:13.408388869 +0000
+++ namedSrc/net/minecraft/block/CampfireBlock.java	2024-07-08 01:48:03.036172037 +0000
@@ -167,7 +167,7 @@
    @Override
    protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
       if ((Boolean)state.get(LIT) && entity instanceof LivingEntity) {
-         entity.damage(world.getDamageSources().m_lxrwzlzj(), (float)this.fireDamage);
+         entity.damage(world.getDamageSources().campfire(), (float)this.fireDamage);
       }
 
       super.onEntityCollision(state, world, pos, entity);
diff -bur namedTargetSrc/net/minecraft/block/DecoratedPotBlock.java namedSrc/net/minecraft/block/DecoratedPotBlock.java
--- namedTargetSrc/net/minecraft/block/DecoratedPotBlock.java	2024-07-08 01:49:13.236386993 +0000
+++ namedSrc/net/minecraft/block/DecoratedPotBlock.java	2024-07-08 01:48:02.848171549 +0000
@@ -261,7 +261,7 @@
    public BlockState onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) {
       ItemStack lv = player.getMainHandStack();
       BlockState lv2 = state;
-      if (lv.isIn(ItemTags.BREAKS_DECORATED_POTS) && !EnchantmentHelper.m_ruiicrds(lv, EnchantmentTags.PREVENTS_DECORATED_POT_SHATTERING)) {
+      if (lv.isIn(ItemTags.BREAKS_DECORATED_POTS) && !EnchantmentHelper.hasTag(lv, EnchantmentTags.PREVENTS_DECORATED_POT_SHATTERING)) {
          lv2 = state.with(CRACKED, Boolean.valueOf(true));
          world.setBlockState(pos, lv2, Block.NO_REDRAW);
       }
diff -bur namedTargetSrc/net/minecraft/block/EndGatewayBlock.java namedSrc/net/minecraft/block/EndGatewayBlock.java
--- namedTargetSrc/net/minecraft/block/EndGatewayBlock.java	2024-07-08 01:49:13.204386644 +0000
+++ namedSrc/net/minecraft/block/EndGatewayBlock.java	2024-07-08 01:48:02.812171456 +0000
@@ -11,11 +11,10 @@
 import net.minecraft.item.ItemStack;
 import net.minecraft.particle.ParticleTypes;
 import net.minecraft.server.world.ServerWorld;
-import net.minecraft.unmapped.C_teerivzm;
-import net.minecraft.unmapped.C_zbvyjshu;
 import net.minecraft.util.math.BlockPos;
 import net.minecraft.util.math.Vec3d;
 import net.minecraft.util.random.RandomGenerator;
+import net.minecraft.world.DimensionTransition;
 import net.minecraft.world.World;
 import net.minecraft.world.WorldView;
 import org.jetbrains.annotations.Nullable;
@@ -24,7 +23,7 @@
  * @mapping {@literal hashed net/minecraft/unmapped/C_pwjzqojt}
  * @mapping {@literal named net/minecraft/block/EndGatewayBlock}
  */
-public class EndGatewayBlock extends BlockWithEntity implements C_teerivzm {
+public class EndGatewayBlock extends BlockWithEntity implements Portal {
    /**
     * @mapping {@literal hashed f_lllipcqu Lnet/minecraft/unmapped/C_pwjzqojt;f_lllipcqu:Lcom/mojang/serialization/MapCodec;}
     * @mapping {@literal named CODEC Lnet/minecraft/block/EndGatewayBlock;CODEC:Lcom/mojang/serialization/MapCodec;}
@@ -115,25 +114,26 @@
     */
    @Override
    protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
-      if (entity.m_acybdbgv(false)
+      if (entity.canUsePortals(false)
          && !world.isClient
          && world.getBlockEntity(pos) instanceof EndGatewayBlockEntity lv2
          && !lv2.needsCooldownBeforeTeleporting()) {
-         entity.m_bikcqssn(this, pos);
+         entity.setInsidePortal(this, pos);
          EndGatewayBlockEntity.startTeleportCooldown(world, pos, state, lv2);
       }
    }
 
    /**
-    * @mapping {@literal hashed m_ssylpsbj Lnet/minecraft/unmapped/C_pwjzqojt;m_ssylpsbj(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_hynzadkk;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_ssylpsbj Lnet/minecraft/block/EndGatewayBlock;m_ssylpsbj(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * Mapping not found
     */
    @Nullable
    @Override
-   public C_zbvyjshu m_ssylpsbj(ServerWorld world, Entity arg2, BlockPos pos) {
+   public DimensionTransition createTransition(ServerWorld world, Entity entity, BlockPos pos) {
       if (world.getBlockEntity(pos) instanceof EndGatewayBlockEntity lv2) {
          Vec3d lv4 = lv2.m_shfarbmg(world, pos);
-         return lv4 != null ? new C_zbvyjshu(world, lv4, m_jeehjmdl(arg2), arg2.getYaw(), arg2.getPitch(), C_zbvyjshu.f_fbtpbgjw) : null;
+         return lv4 != null
+            ? new DimensionTransition(world, lv4, m_jeehjmdl(entity), entity.getYaw(), entity.getPitch(), DimensionTransition.PLACE_PORTAL_CHUNK_TICKET)
+            : null;
       } else {
          return null;
       }
diff -bur namedTargetSrc/net/minecraft/block/EndPortalBlock.java namedSrc/net/minecraft/block/EndPortalBlock.java
--- namedTargetSrc/net/minecraft/block/EndPortalBlock.java	2024-07-08 01:49:13.368388433 +0000
+++ namedSrc/net/minecraft/block/EndPortalBlock.java	2024-07-08 01:48:02.992171923 +0000
@@ -11,8 +11,6 @@
 import net.minecraft.server.network.ServerPlayerEntity;
 import net.minecraft.server.world.ServerWorld;
 import net.minecraft.unmapped.C_idrtmfxf;
-import net.minecraft.unmapped.C_teerivzm;
-import net.minecraft.unmapped.C_zbvyjshu;
 import net.minecraft.util.function.BooleanBiFunction;
 import net.minecraft.util.math.BlockPos;
 import net.minecraft.util.math.Direction;
@@ -21,6 +19,7 @@
 import net.minecraft.util.shape.VoxelShape;
 import net.minecraft.util.shape.VoxelShapes;
 import net.minecraft.world.BlockView;
+import net.minecraft.world.DimensionTransition;
 import net.minecraft.world.World;
 import net.minecraft.world.WorldView;
 
@@ -28,7 +27,7 @@
  * @mapping {@literal hashed net/minecraft/unmapped/C_iqbzlnao}
  * @mapping {@literal named net/minecraft/block/EndPortalBlock}
  */
-public class EndPortalBlock extends BlockWithEntity implements C_teerivzm {
+public class EndPortalBlock extends BlockWithEntity implements Portal {
    /**
     * @mapping {@literal hashed f_woptqwkp Lnet/minecraft/unmapped/C_iqbzlnao;f_woptqwkp:Lcom/mojang/serialization/MapCodec;}
     * @mapping {@literal named CODEC Lnet/minecraft/block/EndPortalBlock;CODEC:Lcom/mojang/serialization/MapCodec;}
@@ -77,7 +76,7 @@
     */
    @Override
    protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
-      if (entity.m_acybdbgv(false)
+      if (entity.canUsePortals(false)
          && VoxelShapes.matchesAnywhere(
             VoxelShapes.cuboid(entity.getBounds().offset((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()))),
             state.getOutlineShape(world, pos),
@@ -88,16 +87,15 @@
             return;
          }
 
-         entity.m_bikcqssn(this, pos);
+         entity.setInsidePortal(this, pos);
       }
    }
 
    /**
-    * @mapping {@literal hashed m_ssylpsbj Lnet/minecraft/unmapped/C_iqbzlnao;m_ssylpsbj(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_hynzadkk;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_ssylpsbj Lnet/minecraft/block/EndPortalBlock;m_ssylpsbj(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * Mapping not found
     */
    @Override
-   public C_zbvyjshu m_ssylpsbj(ServerWorld world, Entity arg2, BlockPos pos) {
+   public DimensionTransition createTransition(ServerWorld world, Entity entity, BlockPos pos) {
       RegistryKey<World> lv = world.getRegistryKey() == World.END ? World.OVERWORLD : World.END;
       ServerWorld lv2 = world.getServer().getWorld(lv);
       if (lv2 == null) {
@@ -106,22 +104,24 @@
          boolean bl = lv == World.END;
          BlockPos lv3 = bl ? ServerWorld.END_SPAWN_POS : lv2.getSpawnPos();
          Vec3d lv4 = lv3.m_rtputfdg();
-         float f = arg2.getYaw();
+         float f = entity.getYaw();
          if (bl) {
             C_idrtmfxf.m_narefewt(lv2, BlockPos.fromPosition(lv4).down(), true);
             f = Direction.WEST.asRotation();
-            if (arg2 instanceof ServerPlayerEntity) {
+            if (entity instanceof ServerPlayerEntity) {
                lv4 = lv4.subtract(0.0, 1.0, 0.0);
             }
          } else {
-            if (arg2 instanceof ServerPlayerEntity lv5) {
-               return lv5.m_jpjsvuqt(false, C_zbvyjshu.f_jgwyllbi);
+            if (entity instanceof ServerPlayerEntity lv5) {
+               return lv5.m_jpjsvuqt(false, DimensionTransition.NO_OP);
             }
 
-            lv4 = arg2.m_vfbpgxfo(lv2, lv3).m_rtputfdg();
+            lv4 = entity.getAdjustedSpawnLocation(lv2, lv3).m_rtputfdg();
          }
 
-         return new C_zbvyjshu(lv2, lv4, arg2.getVelocity(), f, arg2.getPitch(), C_zbvyjshu.f_kidpbkzf.then(C_zbvyjshu.f_fbtpbgjw));
+         return new DimensionTransition(
+            lv2, lv4, entity.getVelocity(), f, entity.getPitch(), DimensionTransition.PLAY_PORTAL_SOUND.then(DimensionTransition.PLACE_PORTAL_CHUNK_TICKET)
+         );
       }
    }
 
diff -bur namedTargetSrc/net/minecraft/block/IceBlock.java namedSrc/net/minecraft/block/IceBlock.java
--- namedTargetSrc/net/minecraft/block/IceBlock.java	2024-07-08 01:49:13.516390048 +0000
+++ namedSrc/net/minecraft/block/IceBlock.java	2024-07-08 01:48:03.148172328 +0000
@@ -54,7 +54,7 @@
    @Override
    public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) {
       super.afterBreak(world, player, pos, state, blockEntity, stack);
-      if (!EnchantmentHelper.m_ruiicrds(stack, EnchantmentTags.PREVENTS_ICE_MELTING)) {
+      if (!EnchantmentHelper.hasTag(stack, EnchantmentTags.PREVENTS_ICE_MELTING)) {
          if (world.getDimension().ultraWarm()) {
             world.removeBlock(pos, false);
             return;
diff -bur namedTargetSrc/net/minecraft/block/InfestedBlock.java namedSrc/net/minecraft/block/InfestedBlock.java
--- namedTargetSrc/net/minecraft/block/InfestedBlock.java	2024-07-08 01:49:13.276387429 +0000
+++ namedSrc/net/minecraft/block/InfestedBlock.java	2024-07-08 01:48:02.892171664 +0000
@@ -108,7 +108,7 @@
    @Override
    protected void onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) {
       super.onStacksDropped(state, world, pos, stack, dropExperience);
-      if (world.getGameRules().getBooleanValue(GameRules.DO_TILE_DROPS) && !EnchantmentHelper.m_ruiicrds(stack, EnchantmentTags.PREVENTS_INFESTED_SPAWNS)) {
+      if (world.getGameRules().getBooleanValue(GameRules.DO_TILE_DROPS) && !EnchantmentHelper.hasTag(stack, EnchantmentTags.PREVENTS_INFESTED_SPAWNS)) {
          this.spawnSilverfish(world, pos);
       }
    }
diff -bur namedTargetSrc/net/minecraft/block/NetherPortalBlock.java namedSrc/net/minecraft/block/NetherPortalBlock.java
--- namedTargetSrc/net/minecraft/block/NetherPortalBlock.java	2024-07-08 01:49:13.424389044 +0000
+++ namedSrc/net/minecraft/block/NetherPortalBlock.java	2024-07-08 01:48:03.056172089 +0000
@@ -17,8 +17,6 @@
 import net.minecraft.state.StateManager;
 import net.minecraft.state.property.EnumProperty;
 import net.minecraft.state.property.Properties;
-import net.minecraft.unmapped.C_teerivzm;
-import net.minecraft.unmapped.C_zbvyjshu;
 import net.minecraft.util.BlockRotation;
 import net.minecraft.util.math.BlockPos;
 import net.minecraft.util.math.Direction;
@@ -27,6 +25,7 @@
 import net.minecraft.util.shape.VoxelShape;
 import net.minecraft.world.BlockLocating;
 import net.minecraft.world.BlockView;
+import net.minecraft.world.DimensionTransition;
 import net.minecraft.world.GameRules;
 import net.minecraft.world.World;
 import net.minecraft.world.WorldAccess;
@@ -41,7 +40,7 @@
  * @mapping {@literal hashed net/minecraft/unmapped/C_zpsdinym}
  * @mapping {@literal named net/minecraft/block/NetherPortalBlock}
  */
-public class NetherPortalBlock extends Block implements C_teerivzm {
+public class NetherPortalBlock extends Block implements Portal {
    /**
     * @mapping {@literal hashed f_murlvzvr Lnet/minecraft/unmapped/C_zpsdinym;f_murlvzvr:Lcom/mojang/serialization/MapCodec;}
     * @mapping {@literal named CODEC Lnet/minecraft/block/NetherPortalBlock;CODEC:Lcom/mojang/serialization/MapCodec;}
@@ -145,18 +144,17 @@
     */
    @Override
    protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
-      if (entity.m_acybdbgv(false)) {
-         entity.m_bikcqssn(this, pos);
+      if (entity.canUsePortals(false)) {
+         entity.setInsidePortal(this, pos);
       }
    }
 
    /**
-    * @mapping {@literal hashed m_ynslrhia Lnet/minecraft/unmapped/C_zpsdinym;m_ynslrhia(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;)I}
-    * @mapping {@literal named m_ynslrhia Lnet/minecraft/block/NetherPortalBlock;m_ynslrhia(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)I}
+    * Mapping not found
     */
    @Override
-   public int m_ynslrhia(ServerWorld world, Entity arg2) {
-      return arg2 instanceof PlayerEntity lv
+   public int getTransitionTime(ServerWorld world, Entity entity) {
+      return entity instanceof PlayerEntity lv
          ? Math.max(
             1,
             world.getGameRules()
@@ -166,12 +164,11 @@
    }
 
    /**
-    * @mapping {@literal hashed m_ssylpsbj Lnet/minecraft/unmapped/C_zpsdinym;m_ssylpsbj(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_hynzadkk;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_ssylpsbj Lnet/minecraft/block/NetherPortalBlock;m_ssylpsbj(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * Mapping not found
     */
    @Nullable
    @Override
-   public C_zbvyjshu m_ssylpsbj(ServerWorld world, Entity arg2, BlockPos pos) {
+   public DimensionTransition createTransition(ServerWorld world, Entity entity, BlockPos pos) {
       RegistryKey<World> lv = world.getRegistryKey() == World.NETHER ? World.OVERWORLD : World.NETHER;
       ServerWorld lv2 = world.getServer().getWorld(lv);
       if (lv2 == null) {
@@ -180,25 +177,25 @@
          boolean bl = lv2.getRegistryKey() == World.NETHER;
          WorldBorder lv3 = lv2.getWorldBorder();
          double d = DimensionType.getCoordinateScaleFactor(world.getDimension(), lv2.getDimension());
-         BlockPos lv4 = lv3.m_vnkyxdhv(arg2.getX() * d, arg2.getY(), arg2.getZ() * d);
-         return this.m_cuetenod(lv2, arg2, pos, lv4, bl, lv3);
+         BlockPos lv4 = lv3.m_vnkyxdhv(entity.getX() * d, entity.getY(), entity.getZ() * d);
+         return this.m_cuetenod(lv2, entity, pos, lv4, bl, lv3);
       }
    }
 
    /**
     * @mapping {@literal hashed m_cuetenod Lnet/minecraft/unmapped/C_zpsdinym;m_cuetenod(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_hynzadkk;Lnet/minecraft/unmapped/C_hynzadkk;ZLnet/minecraft/unmapped/C_pneibfez;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_cuetenod Lnet/minecraft/block/NetherPortalBlock;m_cuetenod(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * @mapping {@literal named m_cuetenod Lnet/minecraft/block/NetherPortalBlock;m_cuetenod(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Lnet/minecraft/world/DimensionTransition;}
     */
    @Nullable
-   private C_zbvyjshu m_cuetenod(ServerWorld world, Entity arg2, BlockPos arg3, BlockPos arg4, boolean bl, WorldBorder arg5) {
+   private DimensionTransition m_cuetenod(ServerWorld world, Entity arg2, BlockPos arg3, BlockPos arg4, boolean bl, WorldBorder arg5) {
       Optional<BlockPos> optional = world.getPortalForcer().m_mpevuvcu(arg4, bl, arg5);
       BlockLocating.Rectangle lv3;
-      C_zbvyjshu.C_pytyshdn lv4;
+      DimensionTransition.PostDimensionTransition lv4;
       if (optional.isPresent()) {
          BlockPos lv = (BlockPos)optional.get();
          BlockState lv2 = world.getBlockState(lv);
          lv3 = BlockLocating.getLargestRectangle(lv, lv2.get(Properties.HORIZONTAL_AXIS), 21, Direction.Axis.Y, 21, pos -> world.getBlockState(pos) == lv2);
-         lv4 = C_zbvyjshu.f_kidpbkzf.then(arg2x -> arg2x.m_gykcjypz(lv));
+         lv4 = DimensionTransition.PLAY_PORTAL_SOUND.then(arg2x -> arg2x.placePortalChunkTicket(lv));
       } else {
          Direction.Axis lv5 = (Direction.Axis)arg2.getWorld().getBlockState(arg3).getOrEmpty(AXIS).orElse(Direction.Axis.X);
          Optional<BlockLocating.Rectangle> optional2 = world.getPortalForcer().createPortal(arg4, lv5);
@@ -208,7 +205,7 @@
          }
 
          lv3 = (BlockLocating.Rectangle)optional2.get();
-         lv4 = C_zbvyjshu.f_kidpbkzf.then(C_zbvyjshu.f_fbtpbgjw);
+         lv4 = DimensionTransition.PLAY_PORTAL_SOUND.then(DimensionTransition.PLACE_PORTAL_CHUNK_TICKET);
       }
 
       return m_kvaymgqu(arg2, arg3, lv3, world, lv4);
@@ -216,9 +213,11 @@
 
    /**
     * @mapping {@literal hashed m_kvaymgqu Lnet/minecraft/unmapped/C_zpsdinym;m_kvaymgqu(Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_hynzadkk;Lnet/minecraft/unmapped/C_wauhtoaq$C_tqypnjit;Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_zbvyjshu$C_pytyshdn;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_kvaymgqu Lnet/minecraft/block/NetherPortalBlock;m_kvaymgqu(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/unmapped/C_zbvyjshu$C_pytyshdn;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * @mapping {@literal named m_kvaymgqu Lnet/minecraft/block/NetherPortalBlock;m_kvaymgqu(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/DimensionTransition$PostDimensionTransition;)Lnet/minecraft/world/DimensionTransition;}
     */
-   private static C_zbvyjshu m_kvaymgqu(Entity arg, BlockPos pos, BlockLocating.Rectangle arg3, ServerWorld world, C_zbvyjshu.C_pytyshdn arg5) {
+   private static DimensionTransition m_kvaymgqu(
+      Entity arg, BlockPos pos, BlockLocating.Rectangle arg3, ServerWorld world, DimensionTransition.PostDimensionTransition arg5
+   ) {
       BlockState lv = arg.getWorld().getBlockState(pos);
       Direction.Axis lv2;
       Vec3d lv4;
@@ -236,10 +235,18 @@
 
    /**
     * @mapping {@literal hashed m_fzuhemna Lnet/minecraft/unmapped/C_zpsdinym;m_fzuhemna(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_wauhtoaq$C_tqypnjit;Lnet/minecraft/unmapped/C_xpuuihxf$C_rmpfouoz;Lnet/minecraft/unmapped/C_vgpupfxx;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_vgpupfxx;FFLnet/minecraft/unmapped/C_zbvyjshu$C_pytyshdn;)Lnet/minecraft/unmapped/C_zbvyjshu;}
-    * @mapping {@literal named m_fzuhemna Lnet/minecraft/block/NetherPortalBlock;m_fzuhemna(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;FFLnet/minecraft/unmapped/C_zbvyjshu$C_pytyshdn;)Lnet/minecraft/unmapped/C_zbvyjshu;}
+    * @mapping {@literal named m_fzuhemna Lnet/minecraft/block/NetherPortalBlock;m_fzuhemna(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;FFLnet/minecraft/world/DimensionTransition$PostDimensionTransition;)Lnet/minecraft/world/DimensionTransition;}
     */
-   private static C_zbvyjshu m_fzuhemna(
-      ServerWorld world, BlockLocating.Rectangle arg2, Direction.Axis arg3, Vec3d arg4, Entity arg5, Vec3d arg6, float f, float g, C_zbvyjshu.C_pytyshdn arg7
+   private static DimensionTransition m_fzuhemna(
+      ServerWorld world,
+      BlockLocating.Rectangle arg2,
+      Direction.Axis arg3,
+      Vec3d arg4,
+      Entity arg5,
+      Vec3d arg6,
+      float f,
+      float g,
+      DimensionTransition.PostDimensionTransition arg7
    ) {
       BlockPos lv = arg2.lowerLeft;
       BlockState lv2 = world.getBlockState(lv);
@@ -255,15 +262,15 @@
       boolean bl = lv3 == Direction.Axis.X;
       Vec3d lv6 = new Vec3d((double)lv.getX() + (bl ? h : k), (double)lv.getY() + j, (double)lv.getZ() + (bl ? k : h));
       Vec3d lv7 = AreaHelper.findOpenPosition(lv6, world, arg5, lv4);
-      return new C_zbvyjshu(world, lv7, lv5, f + (float)i, g, arg7);
+      return new DimensionTransition(world, lv7, lv5, f + (float)i, g, arg7);
    }
 
    /**
     * Mapping not found
     */
    @Override
-   public C_teerivzm.C_budwrmur m_kzlfoqae() {
-      return C_teerivzm.C_budwrmur.CONFUSION;
+   public Portal.Effect getEffect() {
+      return Portal.Effect.CONFUSION;
    }
 
    /**
Only in namedSrc/net/minecraft/block: Portal.java
diff -bur namedTargetSrc/net/minecraft/client/gui/screen/ingame/EnchantmentScreen.java namedSrc/net/minecraft/client/gui/screen/ingame/EnchantmentScreen.java
--- namedTargetSrc/net/minecraft/client/gui/screen/ingame/EnchantmentScreen.java	2024-07-08 01:49:13.280387473 +0000
+++ namedSrc/net/minecraft/client/gui/screen/ingame/EnchantmentScreen.java	2024-07-08 01:48:02.896171673 +0000
@@ -277,7 +277,9 @@
             int o = l + 1;
             if (this.isPointWithinBounds(60, 14 + 19 * l, 108, 17, (double)mouseX, (double)mouseY) && m > 0 && n >= 0 && optional != null) {
                List<Text> list = Lists.<Text>newArrayList();
-               list.add(Text.translatable("container.enchant.clue", Enchantment.m_zfqdifee((Holder<Enchantment>)optional.get(), n)).formatted(Formatting.WHITE));
+               list.add(
+                  Text.translatable("container.enchant.clue", Enchantment.getFullName((Holder<Enchantment>)optional.get(), n)).formatted(Formatting.WHITE)
+               );
                if (!bl) {
                   list.add(CommonTexts.EMPTY);
                   if (this.client.player.experienceLevel < m) {
diff -bur namedTargetSrc/net/minecraft/client/network/ClientPlayerEntity.java namedSrc/net/minecraft/client/network/ClientPlayerEntity.java
--- namedTargetSrc/net/minecraft/client/network/ClientPlayerEntity.java	2024-07-08 01:49:13.372388477 +0000
+++ namedSrc/net/minecraft/client/network/ClientPlayerEntity.java	2024-07-08 01:48:02.996171933 +0000
@@ -9,6 +9,7 @@
 import net.fabricmc.api.EnvType;
 import net.fabricmc.api.Environment;
 import net.minecraft.block.BlockState;
+import net.minecraft.block.Portal;
 import net.minecraft.block.ShapeContext;
 import net.minecraft.block.entity.CommandBlockBlockEntity;
 import net.minecraft.block.entity.HangingSignBlockEntity;
@@ -76,7 +77,6 @@
 import net.minecraft.sound.SoundEvents;
 import net.minecraft.stat.StatHandler;
 import net.minecraft.text.Text;
-import net.minecraft.unmapped.C_teerivzm;
 import net.minecraft.util.Arm;
 import net.minecraft.util.ClickType;
 import net.minecraft.util.Hand;
@@ -1057,7 +1057,7 @@
       }
 
       if (!(this.client.currentScreen instanceof DownloadingTerrainScreen)) {
-         this.m_wcafttvs(this.m_wavkxtkh() == C_teerivzm.C_budwrmur.CONFUSION);
+         this.m_wcafttvs(this.m_wavkxtkh() == Portal.Effect.CONFUSION);
          this.tickNetherPortalCooldown();
       }
 
@@ -1221,8 +1221,8 @@
    /**
     * Mapping not found
     */
-   public C_teerivzm.C_budwrmur m_wavkxtkh() {
-      return this.f_xunwzhqo == null ? C_teerivzm.C_budwrmur.NONE : this.f_xunwzhqo.m_fgkknvcv();
+   public Portal.Effect m_wavkxtkh() {
+      return this.portalProcessor == null ? Portal.Effect.NONE : this.portalProcessor.getEffect();
    }
 
    /**
@@ -1242,7 +1242,7 @@
    private void m_wcafttvs(boolean bl) {
       this.lastScreenSwirlIntensity = this.screenSwirlIntensity;
       float f = 0.0F;
-      if (bl && this.f_xunwzhqo != null && this.f_xunwzhqo.m_ylhauphj()) {
+      if (bl && this.portalProcessor != null && this.portalProcessor.isInPortal()) {
          if (this.client.currentScreen != null
             && !this.client.currentScreen.isPauseScreen()
             && !(this.client.currentScreen instanceof DeathScreen)
@@ -1259,7 +1259,7 @@
          }
 
          f = 0.0125F;
-         this.f_xunwzhqo.m_rvthihju(false);
+         this.portalProcessor.setInPortal(false);
       } else if (this.hasStatusEffect(StatusEffects.NAUSEA) && !this.getStatusEffect(StatusEffects.NAUSEA).endsWithin(60)) {
          f = 0.006666667F;
       } else if (this.screenSwirlIntensity > 0.0F) {
diff -bur namedTargetSrc/net/minecraft/client/network/ClientPlayNetworkHandler.java namedSrc/net/minecraft/client/network/ClientPlayNetworkHandler.java
--- namedTargetSrc/net/minecraft/client/network/ClientPlayNetworkHandler.java	2024-07-08 01:49:13.488389742 +0000
+++ namedSrc/net/minecraft/client/network/ClientPlayNetworkHandler.java	2024-07-08 01:48:03.116172245 +0000
@@ -70,6 +70,7 @@
 import net.minecraft.entity.EquipmentSlot;
 import net.minecraft.entity.ExperienceOrbEntity;
 import net.minecraft.entity.ItemEntity;
+import net.minecraft.entity.Leashable;
 import net.minecraft.entity.LivingEntity;
 import net.minecraft.entity.MovementFlag;
 import net.minecraft.entity.PacketPositionCodec;
@@ -281,7 +282,6 @@
 import net.minecraft.stat.Stat;
 import net.minecraft.stat.StatHandler;
 import net.minecraft.text.Text;
-import net.minecraft.unmapped.C_gbavazgo;
 import net.minecraft.unmapped.C_hgofpcxx;
 import net.minecraft.unmapped.C_jhbjvrtr;
 import net.minecraft.unmapped.C_jvzsxkum;
@@ -1284,8 +1284,8 @@
    @Override
    public void onEntityAttachment(EntityAttachmentS2CPacket packet) {
       NetworkThreadUtils.forceMainThread(packet, this, this.client);
-      if (this.world.getEntityById(packet.getAttachedEntityId()) instanceof C_gbavazgo lv2) {
-         lv2.m_jywtllgu(packet.getHoldingEntityId());
+      if (this.world.getEntityById(packet.getAttachedEntityId()) instanceof Leashable lv2) {
+         lv2.setDelayedLeashHolderId(packet.getHoldingEntityId());
       }
    }
 
@@ -2729,7 +2729,7 @@
    public void m_nirbbegl(C_jhbjvrtr arg) {
       NetworkThreadUtils.forceMainThread(arg, this, this.client);
       if (this.world.getEntityById(arg.m_mxxebkeh()) instanceof ExplosiveProjectileEntity lv2) {
-         lv2.f_omngpikt = arg.m_hxnpbaoh();
+         lv2.accelerationPower = arg.m_hxnpbaoh();
       }
    }
 
diff -bur namedTargetSrc/net/minecraft/client/network/OtherClientPlayerEntity.java namedSrc/net/minecraft/client/network/OtherClientPlayerEntity.java
--- namedTargetSrc/net/minecraft/client/network/OtherClientPlayerEntity.java	2024-07-08 01:49:13.508389960 +0000
+++ namedSrc/net/minecraft/client/network/OtherClientPlayerEntity.java	2024-07-08 01:48:03.136172297 +0000
@@ -85,7 +85,7 @@
       }
 
       if (this.velocityLerpDivisor > 0) {
-         this.addVelocity(
+         this.addVelocityInternal(
             new Vec3d(
                (this.lastVelocity.x - this.getVelocity().x) / (double)this.velocityLerpDivisor,
                (this.lastVelocity.y - this.getVelocity().y) / (double)this.velocityLerpDivisor,
diff -bur namedTargetSrc/net/minecraft/client/render/entity/EntityRenderer.java namedSrc/net/minecraft/client/render/entity/EntityRenderer.java
--- namedTargetSrc/net/minecraft/client/render/entity/EntityRenderer.java	2024-07-08 01:49:13.332388040 +0000
+++ namedSrc/net/minecraft/client/render/entity/EntityRenderer.java	2024-07-08 01:48:02.956171830 +0000
@@ -12,8 +12,8 @@
 import net.minecraft.client.util.math.MatrixStack;
 import net.minecraft.entity.Entity;
 import net.minecraft.entity.EntityAttachmentType;
+import net.minecraft.entity.Leashable;
 import net.minecraft.text.Text;
-import net.minecraft.unmapped.C_gbavazgo;
 import net.minecraft.util.Identifier;
 import net.minecraft.util.math.BlockPos;
 import net.minecraft.util.math.Box;
@@ -110,8 +110,8 @@
          if (frustum.isVisible(lv)) {
             return true;
          } else {
-            if (entity instanceof C_gbavazgo lv2) {
-               Entity lv3 = lv2.m_xkmzlwed();
+            if (entity instanceof Leashable lv2) {
+               Entity lv3 = lv2.getLeashHolder();
                if (lv3 != null) {
                   return frustum.isVisible(lv3.getVisibilityBoundingBox());
                }
@@ -135,8 +135,8 @@
     * @mapping {@literal named render Lnet/minecraft/client/render/entity/EntityRenderer;render(Lnet/minecraft/entity/Entity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V}
     */
    public void render(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) {
-      if (entity instanceof C_gbavazgo lv) {
-         Entity lv2 = lv.m_xkmzlwed();
+      if (entity instanceof Leashable lv) {
+         Entity lv2 = lv.getLeashHolder();
          if (lv2 != null) {
             this.m_kgwqpdyp(entity, tickDelta, matrices, vertexConsumers, lv2);
          }
@@ -154,7 +154,7 @@
    private <E extends Entity> void m_kgwqpdyp(T arg, float f, MatrixStack matrices, VertexConsumerProvider vertexConsumers, E entity) {
       matrices.push();
       Vec3d lv = entity.getLeashHoldPosition(f);
-      double d = (double)(arg.m_yjtjhqxv(f) * (float) (Math.PI / 180.0)) + (Math.PI / 2);
+      double d = (double)(arg.lerpYaw(f) * (float) (Math.PI / 180.0)) + (Math.PI / 2);
       Vec3d lv2 = arg.getLeashOffset(f);
       double e = Math.cos(d) * lv2.z + Math.sin(d) * lv2.x;
       double g = Math.sin(d) * lv2.z - Math.cos(d) * lv2.x;
Only in namedSrc/net/minecraft/component: EnchantmentEffectComponentTypes.java
diff -bur namedTargetSrc/net/minecraft/component/type/ItemEnchantmentsComponent.java namedSrc/net/minecraft/component/type/ItemEnchantmentsComponent.java
--- namedTargetSrc/net/minecraft/component/type/ItemEnchantmentsComponent.java	2024-07-08 01:49:13.396388738 +0000
+++ namedSrc/net/minecraft/component/type/ItemEnchantmentsComponent.java	2024-07-08 01:48:03.024172006 +0000
@@ -47,7 +47,7 @@
     * @mapping {@literal hashed f_weawpons Lnet/minecraft/unmapped/C_qlclfxvn;f_weawpons:Lcom/mojang/serialization/Codec;}
     * @mapping {@literal named LEVELS_CODEC Lnet/minecraft/component/type/ItemEnchantmentsComponent;LEVELS_CODEC:Lcom/mojang/serialization/Codec;}
     */
-   private static final Codec<Object2IntOpenHashMap<Holder<Enchantment>>> LEVELS_CODEC = Codec.unboundedMap(Enchantment.f_cvunyugc, LEVEL_CODEC)
+   private static final Codec<Object2IntOpenHashMap<Holder<Enchantment>>> LEVELS_CODEC = Codec.unboundedMap(Enchantment.ENTRY_CODEC, LEVEL_CODEC)
       .xmap(Object2IntOpenHashMap::new, Function.identity());
    /**
     * @mapping {@literal hashed f_nekwvric Lnet/minecraft/unmapped/C_qlclfxvn;f_nekwvric:Lcom/mojang/serialization/Codec;}
@@ -72,7 +72,7 @@
     * @mapping {@literal named PACKET_CODEC Lnet/minecraft/component/type/ItemEnchantmentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;}
     */
    public static final PacketCodec<RegistryByteBuf, ItemEnchantmentsComponent> PACKET_CODEC = PacketCodec.tuple(
-      PacketCodecs.map(Object2IntOpenHashMap::new, Enchantment.PACKET_CODEC, PacketCodecs.VAR_INT),
+      PacketCodecs.map(Object2IntOpenHashMap::new, Enchantment.ENTRY_PACKET_CODEC, PacketCodecs.VAR_INT),
       component -> component.levels,
       PacketCodecs.BOOL,
       component -> component.shownInTooltip,
@@ -124,14 +124,14 @@
          for (Holder<Enchantment> lv3 : lv2) {
             int i = this.levels.getInt(lv3);
             if (i > 0) {
-               tooltipConsumer.accept(Enchantment.m_zfqdifee(lv3, i));
+               tooltipConsumer.accept(Enchantment.getFullName(lv3, i));
             }
          }
 
          for (Entry<Holder<Enchantment>> entry : this.levels.object2IntEntrySet()) {
             Holder<Enchantment> lv4 = (Holder<Enchantment>)entry.getKey();
             if (!lv2.contains(lv4)) {
-               tooltipConsumer.accept(Enchantment.m_zfqdifee((Holder<Enchantment>)entry.getKey(), entry.getIntValue()));
+               tooltipConsumer.accept(Enchantment.getFullName((Holder<Enchantment>)entry.getKey(), entry.getIntValue()));
             }
          }
       }
diff -bur namedTargetSrc/net/minecraft/data/server/advancement/AdventureAdvancementTabGenerator.java namedSrc/net/minecraft/data/server/advancement/AdventureAdvancementTabGenerator.java
--- namedTargetSrc/net/minecraft/data/server/advancement/AdventureAdvancementTabGenerator.java	2024-07-08 01:49:13.452389349 +0000
+++ namedSrc/net/minecraft/data/server/advancement/AdventureAdvancementTabGenerator.java	2024-07-08 01:48:03.084172162 +0000
@@ -994,7 +994,7 @@
                LootCondition.Builder lv3 = LocationCheckLootCondition.builder(
                   LocationPredicate.Builder.create().block(BlockPredicate.Builder.create().blocks(block)), new BlockPos(direction.getVector())
                );
-               return AllOfLootCondition.m_sibyssbo(lv2, lv3);
+               return AllOfLootCondition.builder(lv2, lv3);
             }
          )
          .toArray(LootCondition.Builder[]::new);
diff -bur namedTargetSrc/net/minecraft/data/server/tag/DamageTypeTagsProvider.java namedSrc/net/minecraft/data/server/tag/DamageTypeTagsProvider.java
--- namedTargetSrc/net/minecraft/data/server/tag/DamageTypeTagsProvider.java	2024-07-08 01:49:13.220386818 +0000
+++ namedSrc/net/minecraft/data/server/tag/DamageTypeTagsProvider.java	2024-07-08 01:48:02.828171497 +0000
@@ -58,7 +58,7 @@
       this.getOrCreateTagBuilder(DamageTypeTags.IS_FIRE)
          .add(
             DamageTypes.IN_FIRE,
-            DamageTypes.f_aebymdih,
+            DamageTypes.CAMPFIRE,
             DamageTypes.ON_FIRE,
             DamageTypes.LAVA,
             DamageTypes.HOT_FLOOR,
@@ -88,7 +88,7 @@
       this.getOrCreateTagBuilder(DamageTypeTags.NO_IMPACT).add(DamageTypes.DROWN);
       this.getOrCreateTagBuilder(DamageTypeTags.ALWAYS_MOST_SIGNIFICANT_FALL).add(DamageTypes.OUT_OF_WORLD);
       this.getOrCreateTagBuilder(DamageTypeTags.WITHER_IMMUNE_TO).add(DamageTypes.DROWN);
-      this.getOrCreateTagBuilder(DamageTypeTags.IGNITES_ARMOR_STANDS).add(DamageTypes.IN_FIRE, DamageTypes.f_aebymdih);
+      this.getOrCreateTagBuilder(DamageTypeTags.IGNITES_ARMOR_STANDS).add(DamageTypes.IN_FIRE, DamageTypes.CAMPFIRE);
       this.getOrCreateTagBuilder(DamageTypeTags.BURNS_ARMOR_STANDS).add(DamageTypes.ON_FIRE);
       this.getOrCreateTagBuilder(DamageTypeTags.AVOIDS_GUARDIAN_THORNS).add(DamageTypes.MAGIC, DamageTypes.THORNS).addTag(DamageTypeTags.IS_EXPLOSION);
       this.getOrCreateTagBuilder(DamageTypeTags.ALWAYS_TRIGGERS_SILVERFISH).add(DamageTypes.MAGIC);
@@ -121,7 +121,7 @@
             DamageTypes.STALAGMITE,
             DamageTypes.OUTSIDE_BORDER,
             DamageTypes.GENERIC_KILL,
-            DamageTypes.f_aebymdih
+            DamageTypes.CAMPFIRE
          );
       this.getOrCreateTagBuilder(DamageTypeTags.ALWAYS_KILLS_ARMOR_STANDS)
          .add(DamageTypes.ARROW, DamageTypes.TRIDENT, DamageTypes.FIREBALL, DamageTypes.WITHER_SKULL, DamageTypes.WIND_CHARGE);
@@ -142,7 +142,7 @@
             DamageTypes.WITHER
          );
       this.getOrCreateTagBuilder(DamageTypeTags.IS_PLAYER_ATTACK).add(DamageTypes.PLAYER_ATTACK);
-      this.getOrCreateTagBuilder(DamageTypeTags.BURN_FROM_STEPPING).add(DamageTypes.f_aebymdih, DamageTypes.HOT_FLOOR);
+      this.getOrCreateTagBuilder(DamageTypeTags.BURN_FROM_STEPPING).add(DamageTypes.CAMPFIRE, DamageTypes.HOT_FLOOR);
       this.getOrCreateTagBuilder(DamageTypeTags.PANIC_ENVIRONMENTAL_CAUSES)
          .add(
             DamageTypes.CACTUS,
Only in namedSrc/net/minecraft/enchantment: effect
Only in namedSrc/net/minecraft/enchantment: EnchantmentEffectContext.java

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View the diff here (2/3):
diff -bur namedTargetSrc/net/minecraft/enchantment/EnchantmentHelper.java namedSrc/net/minecraft/enchantment/EnchantmentHelper.java
--- namedTargetSrc/net/minecraft/enchantment/EnchantmentHelper.java	2024-07-08 01:49:13.364388389 +0000
+++ namedSrc/net/minecraft/enchantment/EnchantmentHelper.java	2024-07-08 01:48:02.988171913 +0000
@@ -13,7 +13,11 @@
 import net.minecraft.block.BlockState;
 import net.minecraft.component.DataComponentType;
 import net.minecraft.component.DataComponentTypes;
+import net.minecraft.component.EnchantmentEffectComponentTypes;
 import net.minecraft.component.type.ItemEnchantmentsComponent;
+import net.minecraft.enchantment.effect.EnchantmentEffectTarget;
+import net.minecraft.enchantment.effect.EnchantmentValueEffect;
+import net.minecraft.enchantment.provider.EnchantmentProvider;
 import net.minecraft.entity.Entity;
 import net.minecraft.entity.EquipmentSlot;
 import net.minecraft.entity.EquipmentSlotGroup;
@@ -33,11 +37,6 @@
 import net.minecraft.registry.RegistryKeys;
 import net.minecraft.registry.tag.TagKey;
 import net.minecraft.server.world.ServerWorld;
-import net.minecraft.unmapped.C_nzjqewao;
-import net.minecraft.unmapped.C_pjrjvgrp;
-import net.minecraft.unmapped.C_qraehchg;
-import net.minecraft.unmapped.C_rkxlblfn;
-import net.minecraft.unmapped.C_zjvjrddv;
 import net.minecraft.util.Util;
 import net.minecraft.util.collection.Weighting;
 import net.minecraft.util.math.MathHelper;
@@ -56,25 +55,25 @@
 public class EnchantmentHelper {
    /**
     * @mapping {@literal hashed m_byjosehc Lnet/minecraft/unmapped/C_jakrppis;m_byjosehc(Lnet/minecraft/unmapped/C_cjzoxshv;Lnet/minecraft/unmapped/C_sddaxwyk;)I}
-    * @mapping {@literal named m_byjosehc Lnet/minecraft/enchantment/EnchantmentHelper;m_byjosehc(Lnet/minecraft/registry/Holder;Lnet/minecraft/item/ItemStack;)I}
+    * @mapping {@literal named getLevel Lnet/minecraft/enchantment/EnchantmentHelper;getLevel(Lnet/minecraft/registry/Holder;Lnet/minecraft/item/ItemStack;)I}
     */
-   public static int m_byjosehc(Holder<Enchantment> arg, ItemStack stack) {
+   public static int getLevel(Holder<Enchantment> enchantment, ItemStack stack) {
       ItemEnchantmentsComponent lv = stack.getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT);
-      return lv.m_ugcgsgdf(arg);
+      return lv.m_ugcgsgdf(enchantment);
    }
 
    /**
     * @mapping {@literal hashed m_iefpfmdo Lnet/minecraft/unmapped/C_jakrppis;m_iefpfmdo(Lnet/minecraft/unmapped/C_sddaxwyk;Ljava/util/function/Consumer;)Lnet/minecraft/unmapped/C_qlclfxvn;}
-    * @mapping {@literal named m_iefpfmdo Lnet/minecraft/enchantment/EnchantmentHelper;m_iefpfmdo(Lnet/minecraft/item/ItemStack;Ljava/util/function/Consumer;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;}
+    * @mapping {@literal named applyEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;applyEnchantments(Lnet/minecraft/item/ItemStack;Ljava/util/function/Consumer;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;}
     */
-   public static ItemEnchantmentsComponent m_iefpfmdo(ItemStack stack, java.util.function.Consumer<ItemEnchantmentsComponent.Builder> consumer) {
-      DataComponentType<ItemEnchantmentsComponent> lv = m_fbcdwuju(stack);
+   public static ItemEnchantmentsComponent applyEnchantments(ItemStack stack, java.util.function.Consumer<ItemEnchantmentsComponent.Builder> applier) {
+      DataComponentType<ItemEnchantmentsComponent> lv = getComponentType(stack);
       ItemEnchantmentsComponent lv2 = stack.get(lv);
       if (lv2 == null) {
          return ItemEnchantmentsComponent.DEFAULT;
       } else {
          ItemEnchantmentsComponent.Builder lv3 = new ItemEnchantmentsComponent.Builder(lv2);
-         consumer.accept(lv3);
+         applier.accept(lv3);
          ItemEnchantmentsComponent lv4 = lv3.build();
          stack.set(lv, lv4);
          return lv4;
@@ -83,10 +82,10 @@
 
    /**
     * @mapping {@literal hashed m_mimuzvcl Lnet/minecraft/unmapped/C_jakrppis;m_mimuzvcl(Lnet/minecraft/unmapped/C_sddaxwyk;)Z}
-    * @mapping {@literal named m_mimuzvcl Lnet/minecraft/enchantment/EnchantmentHelper;m_mimuzvcl(Lnet/minecraft/item/ItemStack;)Z}
+    * @mapping {@literal named supportsEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;supportsEnchantments(Lnet/minecraft/item/ItemStack;)Z}
     */
-   public static boolean m_mimuzvcl(ItemStack stack) {
-      return stack.contains(m_fbcdwuju(stack));
+   public static boolean supportsEnchantments(ItemStack stack) {
+      return stack.contains(getComponentType(stack));
    }
 
    /**
@@ -99,104 +98,104 @@
     * @mapping {@literal named set Lnet/minecraft/enchantment/EnchantmentHelper;set(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent;)V}
     */
    public static void set(ItemStack stack, ItemEnchantmentsComponent value) {
-      stack.set(m_fbcdwuju(stack), value);
+      stack.set(getComponentType(stack), value);
    }
 
    /**
     * @mapping {@literal hashed m_uyoiclvv Lnet/minecraft/unmapped/C_jakrppis;m_uyoiclvv(Lnet/minecraft/unmapped/C_sddaxwyk;)Lnet/minecraft/unmapped/C_qlclfxvn;}
-    * @mapping {@literal named m_uyoiclvv Lnet/minecraft/enchantment/EnchantmentHelper;m_uyoiclvv(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;}
+    * @mapping {@literal named getEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;getEnchantments(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/type/ItemEnchantmentsComponent;}
     */
-   public static ItemEnchantmentsComponent m_uyoiclvv(ItemStack stack) {
-      return stack.getOrDefault(m_fbcdwuju(stack), ItemEnchantmentsComponent.DEFAULT);
+   public static ItemEnchantmentsComponent getEnchantments(ItemStack stack) {
+      return stack.getOrDefault(getComponentType(stack), ItemEnchantmentsComponent.DEFAULT);
    }
 
    /**
     * @mapping {@literal hashed m_fbcdwuju Lnet/minecraft/unmapped/C_jakrppis;m_fbcdwuju(Lnet/minecraft/unmapped/C_sddaxwyk;)Lnet/minecraft/unmapped/C_pscqxfcs;}
-    * @mapping {@literal named m_fbcdwuju Lnet/minecraft/enchantment/EnchantmentHelper;m_fbcdwuju(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/DataComponentType;}
+    * @mapping {@literal named getComponentType Lnet/minecraft/enchantment/EnchantmentHelper;getComponentType(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/DataComponentType;}
     */
-   private static DataComponentType<ItemEnchantmentsComponent> m_fbcdwuju(ItemStack stack) {
+   private static DataComponentType<ItemEnchantmentsComponent> getComponentType(ItemStack stack) {
       return stack.isOf(Items.ENCHANTED_BOOK) ? DataComponentTypes.STORED_ENCHANTMENTS : DataComponentTypes.ENCHANTMENTS;
    }
 
    /**
     * @mapping {@literal hashed m_koeurtnx Lnet/minecraft/unmapped/C_jakrppis;m_koeurtnx(Lnet/minecraft/unmapped/C_sddaxwyk;)Z}
-    * @mapping {@literal named m_koeurtnx Lnet/minecraft/enchantment/EnchantmentHelper;m_koeurtnx(Lnet/minecraft/item/ItemStack;)Z}
+    * @mapping {@literal named hasEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;hasEnchantments(Lnet/minecraft/item/ItemStack;)Z}
     */
-   public static boolean m_koeurtnx(ItemStack stack) {
+   public static boolean hasEnchantments(ItemStack stack) {
       return !stack.getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT).isEmpty()
          || !stack.getOrDefault(DataComponentTypes.STORED_ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT).isEmpty();
    }
 
    /**
     * @mapping {@literal hashed m_chdruiod Lnet/minecraft/unmapped/C_jakrppis;m_chdruiod(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;I)I}
-    * @mapping {@literal named m_chdruiod Lnet/minecraft/enchantment/EnchantmentHelper;m_chdruiod(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
+    * @mapping {@literal named getDurabilityChange Lnet/minecraft/enchantment/EnchantmentHelper;getDurabilityChange(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
     */
-   public static int m_chdruiod(ServerWorld world, ItemStack stack, int i) {
-      MutableFloat mutableFloat = new MutableFloat((float)i);
-      m_akhrohzh(stack, (arg3, ix) -> arg3.value().m_smjuddye(world, ix, stack, mutableFloat));
+   public static int getDurabilityChange(ServerWorld world, ItemStack stack, int baseDamage) {
+      MutableFloat mutableFloat = new MutableFloat((float)baseDamage);
+      forEachEnchantment(stack, (arg3, i) -> arg3.value().modifyDurabilityChange(world, i, stack, mutableFloat));
       return mutableFloat.intValue();
    }
 
    /**
     * @mapping {@literal hashed m_pvuxrowe Lnet/minecraft/unmapped/C_jakrppis;m_pvuxrowe(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_sddaxwyk;I)I}
-    * @mapping {@literal named m_pvuxrowe Lnet/minecraft/enchantment/EnchantmentHelper;m_pvuxrowe(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)I}
+    * @mapping {@literal named getAmmoUse Lnet/minecraft/enchantment/EnchantmentHelper;getAmmoUse(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)I}
     */
-   public static int m_pvuxrowe(ServerWorld world, ItemStack arg2, ItemStack arg3, int i) {
-      MutableFloat mutableFloat = new MutableFloat((float)i);
-      m_akhrohzh(arg2, (arg3x, ix) -> ((Enchantment)arg3x.value()).m_xkuqfipi(world, ix, arg3, mutableFloat));
+   public static int getAmmoUse(ServerWorld world, ItemStack weapon, ItemStack projectile, int baseAmmoUse) {
+      MutableFloat mutableFloat = new MutableFloat((float)baseAmmoUse);
+      forEachEnchantment(weapon, (arg3, i) -> arg3.value().modifyAmmoChange(world, i, projectile, mutableFloat));
       return mutableFloat.intValue();
    }
 
    /**
     * @mapping {@literal hashed m_mcehpxsn Lnet/minecraft/unmapped/C_jakrppis;m_mcehpxsn(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;I)I}
-    * @mapping {@literal named m_mcehpxsn Lnet/minecraft/enchantment/EnchantmentHelper;m_mcehpxsn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
+    * @mapping {@literal named getBlockExperience Lnet/minecraft/enchantment/EnchantmentHelper;getBlockExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
     */
-   public static int m_mcehpxsn(ServerWorld world, ItemStack stack, int i) {
-      MutableFloat mutableFloat = new MutableFloat((float)i);
-      m_akhrohzh(stack, (arg3, ix) -> arg3.value().m_tfnzpqjx(world, ix, stack, mutableFloat));
+   public static int getBlockExperience(ServerWorld world, ItemStack stack, int baseBlockExperience) {
+      MutableFloat mutableFloat = new MutableFloat((float)baseBlockExperience);
+      forEachEnchantment(stack, (arg3, i) -> arg3.value().modifyBlockExperience(world, i, stack, mutableFloat));
       return mutableFloat.intValue();
    }
 
    /**
     * @mapping {@literal hashed m_uxlmovdv Lnet/minecraft/unmapped/C_jakrppis;m_uxlmovdv(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_astfners;I)I}
-    * @mapping {@literal named m_uxlmovdv Lnet/minecraft/enchantment/EnchantmentHelper;m_uxlmovdv(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;I)I}
+    * @mapping {@literal named getMobExperience Lnet/minecraft/enchantment/EnchantmentHelper;getMobExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;I)I}
     */
-   public static int m_uxlmovdv(ServerWorld world, @Nullable Entity arg2, Entity arg3, int i) {
-      if (arg2 instanceof LivingEntity lv) {
-         MutableFloat mutableFloat = new MutableFloat((float)i);
-         m_kvkboaps(lv, (arg3x, ix, arg4) -> ((Enchantment)arg3x.value()).m_dktlsnak(world, ix, arg4.itemStack(), arg3, mutableFloat));
+   public static int getMobExperience(ServerWorld world, @Nullable Entity attacker, Entity mob, int baseExperience) {
+      if (attacker instanceof LivingEntity lv) {
+         MutableFloat mutableFloat = new MutableFloat((float)baseExperience);
+         forEachEquippedEnchantment(lv, (arg3, i, arg4) -> arg3.value().modifyMobExperience(world, i, arg4.itemStack(), mob, mutableFloat));
          return mutableFloat.intValue();
       } else {
-         return i;
+         return baseExperience;
       }
    }
 
    /**
     * @mapping {@literal hashed m_akhrohzh Lnet/minecraft/unmapped/C_jakrppis;m_akhrohzh(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_jakrppis$C_jdhxivxn;)V}
-    * @mapping {@literal named m_akhrohzh Lnet/minecraft/enchantment/EnchantmentHelper;m_akhrohzh(Lnet/minecraft/item/ItemStack;Lnet/minecraft/enchantment/EnchantmentHelper$Consumer;)V}
+    * @mapping {@literal named forEachEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;forEachEnchantment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/enchantment/EnchantmentHelper$Consumer;)V}
     */
-   private static void m_akhrohzh(ItemStack stack, EnchantmentHelper.Consumer arg2) {
+   private static void forEachEnchantment(ItemStack stack, EnchantmentHelper.Consumer enchantmentConsumer) {
       ItemEnchantmentsComponent lv = stack.getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT);
 
       for (Entry<Holder<Enchantment>> entry : lv.getEnchantmentEntries()) {
-         arg2.accept((Holder<Enchantment>)entry.getKey(), entry.getIntValue());
+         enchantmentConsumer.accept((Holder<Enchantment>)entry.getKey(), entry.getIntValue());
       }
    }
 
    /**
     * @mapping {@literal hashed m_xdjgfpqn Lnet/minecraft/unmapped/C_jakrppis;m_xdjgfpqn(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_yuycoehb;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_jakrppis$C_wtxpyhvg;)V}
-    * @mapping {@literal named m_xdjgfpqn Lnet/minecraft/enchantment/EnchantmentHelper;m_xdjgfpqn(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/enchantment/EnchantmentHelper$C_wtxpyhvg;)V}
+    * @mapping {@literal named forEachEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;forEachEnchantment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/enchantment/EnchantmentHelper$ContextAwareConsumer;)V}
     */
-   private static void m_xdjgfpqn(ItemStack stack, EquipmentSlot inSlot, LivingEntity owner, EnchantmentHelper.C_wtxpyhvg arg4) {
+   private static void forEachEnchantment(ItemStack stack, EquipmentSlot inSlot, LivingEntity owner, EnchantmentHelper.ContextAwareConsumer enchantmentConsumer) {
       if (!stack.isEmpty()) {
          ItemEnchantmentsComponent lv = stack.get(DataComponentTypes.ENCHANTMENTS);
          if (lv != null && !lv.isEmpty()) {
-            C_pjrjvgrp lv2 = new C_pjrjvgrp(stack, inSlot, owner);
+            EnchantmentEffectContext lv2 = new EnchantmentEffectContext(stack, inSlot, owner);
 
             for (Entry<Holder<Enchantment>> entry : lv.getEnchantmentEntries()) {
                Holder<Enchantment> lv3 = (Holder<Enchantment>)entry.getKey();
-               if (lv3.value().m_jhglsmkm(inSlot)) {
-                  arg4.accept(lv3, entry.getIntValue(), lv2);
+               if (lv3.value().matchesSlot(inSlot)) {
+                  enchantmentConsumer.accept(lv3, entry.getIntValue(), lv2);
                }
             }
          }
@@ -204,149 +203,155 @@
    }
 
    /**
-    * Mapping not found
+    * @mapping {@literal hashed m_kvkboaps Lnet/minecraft/unmapped/C_jakrppis;m_kvkboaps(Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_jakrppis$C_wtxpyhvg;)V}
+    * @mapping {@literal named forEachEquippedEnchantment Lnet/minecraft/enchantment/EnchantmentHelper;forEachEquippedEnchantment(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/enchantment/EnchantmentHelper$ContextAwareConsumer;)V}
     */
-   private static void m_kvkboaps(LivingEntity arg, EnchantmentHelper.C_wtxpyhvg arg2) {
+   private static void forEachEquippedEnchantment(LivingEntity entity, EnchantmentHelper.ContextAwareConsumer enchantmentConsumer) {
       for (EquipmentSlot lv : EquipmentSlot.values()) {
-         m_xdjgfpqn(arg.getEquippedStack(lv), lv, arg, arg2);
+         forEachEnchantment(entity.getEquippedStack(lv), lv, entity, enchantmentConsumer);
       }
    }
 
    /**
     * @mapping {@literal hashed m_gqfvpbsm Lnet/minecraft/unmapped/C_jakrppis;m_gqfvpbsm(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_sbxfkpyv;)Z}
-    * @mapping {@literal named m_gqfvpbsm Lnet/minecraft/enchantment/EnchantmentHelper;m_gqfvpbsm(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Z}
+    * @mapping {@literal named getImmuneToDamageFrom Lnet/minecraft/enchantment/EnchantmentHelper;getImmuneToDamageFrom(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Z}
     */
-   public static boolean m_gqfvpbsm(ServerWorld world, LivingEntity arg2, DamageSource arg3) {
+   public static boolean getImmuneToDamageFrom(ServerWorld world, LivingEntity entity, DamageSource source) {
       MutableBoolean mutableBoolean = new MutableBoolean();
-      m_kvkboaps(arg2, (arg4, i, arg5) -> mutableBoolean.setValue(mutableBoolean.isTrue() || arg4.value().m_ujjglmjb(world, i, arg2, arg3)));
+      forEachEquippedEnchantment(
+         entity, (arg4, i, arg5) -> mutableBoolean.setValue(mutableBoolean.isTrue() || arg4.value().isImmuneToDamageFrom(world, i, entity, source))
+      );
       return mutableBoolean.isTrue();
    }
 
    /**
     * @mapping {@literal hashed m_jfbiswcz Lnet/minecraft/unmapped/C_jakrppis;m_jfbiswcz(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_sbxfkpyv;)F}
-    * @mapping {@literal named m_jfbiswcz Lnet/minecraft/enchantment/EnchantmentHelper;m_jfbiswcz(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)F}
+    * @mapping {@literal named getDamageProtection Lnet/minecraft/enchantment/EnchantmentHelper;getDamageProtection(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)F}
     */
-   public static float m_jfbiswcz(ServerWorld world, LivingEntity arg2, DamageSource arg3) {
+   public static float getDamageProtection(ServerWorld world, LivingEntity entity, DamageSource source) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_kvkboaps(arg2, (arg4, i, arg5) -> arg4.value().m_ysnvykwd(world, i, arg5.itemStack(), arg2, arg3, mutableFloat));
+      forEachEquippedEnchantment(entity, (arg4, i, arg5) -> arg4.value().modifyDamageProtection(world, i, arg5.itemStack(), entity, source, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_xevkkzlv Lnet/minecraft/unmapped/C_jakrppis;m_xevkkzlv(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;F)F}
-    * @mapping {@literal named m_xevkkzlv Lnet/minecraft/enchantment/EnchantmentHelper;m_xevkkzlv(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
+    * @mapping {@literal named getDamage Lnet/minecraft/enchantment/EnchantmentHelper;getDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
     */
-   public static float m_xevkkzlv(ServerWorld world, ItemStack stack, Entity arg3, DamageSource arg4, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg5, i) -> arg5.value().m_hhzjktgj(world, i, stack, arg3, arg4, mutableFloat));
+   public static float getDamage(ServerWorld world, ItemStack stack, Entity entity, DamageSource source, float baseDamage) {
+      MutableFloat mutableFloat = new MutableFloat(baseDamage);
+      forEachEnchantment(stack, (arg5, i) -> arg5.value().modifyDamage(world, i, stack, entity, source, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_gihyytey Lnet/minecraft/unmapped/C_jakrppis;m_gihyytey(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;F)F}
-    * @mapping {@literal named m_gihyytey Lnet/minecraft/enchantment/EnchantmentHelper;m_gihyytey(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
+    * @mapping {@literal named getFallBasedDamage Lnet/minecraft/enchantment/EnchantmentHelper;getFallBasedDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
     */
-   public static float m_gihyytey(ServerWorld world, ItemStack stack, Entity arg3, DamageSource arg4, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg5, i) -> arg5.value().m_bycsoyig(world, i, stack, arg3, arg4, mutableFloat));
+   public static float getFallBasedDamage(ServerWorld world, ItemStack stack, Entity entity, DamageSource source, float baseDamage) {
+      MutableFloat mutableFloat = new MutableFloat(baseDamage);
+      forEachEnchantment(stack, (arg5, i) -> arg5.value().modifyFallBasedDamage(world, i, stack, entity, source, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_rrxecqvc Lnet/minecraft/unmapped/C_jakrppis;m_rrxecqvc(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;F)F}
-    * @mapping {@literal named m_rrxecqvc Lnet/minecraft/enchantment/EnchantmentHelper;m_rrxecqvc(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
+    * @mapping {@literal named getArmorEffectiveness Lnet/minecraft/enchantment/EnchantmentHelper;getArmorEffectiveness(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
     */
-   public static float m_rrxecqvc(ServerWorld world, ItemStack stack, Entity arg3, DamageSource arg4, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg5, i) -> arg5.value().m_jaecftnx(world, i, stack, arg3, arg4, mutableFloat));
+   public static float getArmorEffectiveness(ServerWorld world, ItemStack stack, Entity entity, DamageSource source, float baseEffectiveness) {
+      MutableFloat mutableFloat = new MutableFloat(baseEffectiveness);
+      forEachEnchantment(stack, (arg5, i) -> arg5.value().modifyArmorEffectiveness(world, i, stack, entity, source, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_imfnnaau Lnet/minecraft/unmapped/C_jakrppis;m_imfnnaau(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;F)F}
-    * @mapping {@literal named m_imfnnaau Lnet/minecraft/enchantment/EnchantmentHelper;m_imfnnaau(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
+    * @mapping {@literal named getKnockback Lnet/minecraft/enchantment/EnchantmentHelper;getKnockback(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;F)F}
     */
-   public static float m_imfnnaau(ServerWorld world, ItemStack stack, Entity arg3, DamageSource arg4, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg5, i) -> arg5.value().m_tehyavah(world, i, stack, arg3, arg4, mutableFloat));
+   public static float getKnockback(ServerWorld world, ItemStack stack, Entity entity, DamageSource source, float baseKnockback) {
+      MutableFloat mutableFloat = new MutableFloat(baseKnockback);
+      forEachEnchantment(stack, (arg5, i) -> arg5.value().modifyKnockback(world, i, stack, entity, source, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_rixuxzms Lnet/minecraft/unmapped/C_jakrppis;m_rixuxzms(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;)V}
-    * @mapping {@literal named m_rixuxzms Lnet/minecraft/enchantment/EnchantmentHelper;m_rixuxzms(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V}
+    * @mapping {@literal named onEntityDamaged Lnet/minecraft/enchantment/EnchantmentHelper;onEntityDamaged(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V}
     */
-   public static void m_rixuxzms(ServerWorld world, Entity arg2, DamageSource arg3) {
-      if (arg3.getAttacker() instanceof LivingEntity lv) {
-         m_swhrpoib(world, arg2, arg3, lv.m_ywnmbdjz());
+   public static void onEntityDamaged(ServerWorld world, Entity entity, DamageSource source) {
+      if (source.getAttacker() instanceof LivingEntity lv) {
+         onEntityHitWithItem(world, entity, source, lv.getWeaponStack());
       } else {
-         m_swhrpoib(world, arg2, arg3, null);
+         onEntityHitWithItem(world, entity, source, null);
       }
    }
 
    /**
     * @mapping {@literal hashed m_swhrpoib Lnet/minecraft/unmapped/C_jakrppis;m_swhrpoib(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_sbxfkpyv;Lnet/minecraft/unmapped/C_sddaxwyk;)V}
-    * @mapping {@literal named m_swhrpoib Lnet/minecraft/enchantment/EnchantmentHelper;m_swhrpoib(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/item/ItemStack;)V}
+    * @mapping {@literal named onEntityHitWithItem Lnet/minecraft/enchantment/EnchantmentHelper;onEntityHitWithItem(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/item/ItemStack;)V}
     */
-   public static void m_swhrpoib(ServerWorld world, Entity arg2, DamageSource arg3, @Nullable ItemStack stack) {
-      if (arg2 instanceof LivingEntity lv) {
-         m_kvkboaps(lv, (arg4, i, arg5) -> arg4.value().m_umpbrnfg(world, i, arg5, C_zjvjrddv.VICTIM, arg2, arg3));
+   public static void onEntityHitWithItem(ServerWorld world, Entity entity, DamageSource source, @Nullable ItemStack stack) {
+      if (entity instanceof LivingEntity lv) {
+         forEachEquippedEnchantment(lv, (arg4, i, arg5) -> arg4.value().onTargetHit(world, i, arg5, EnchantmentEffectTarget.VICTIM, entity, source));
       }
 
-      if (stack != null && arg3.getAttacker() instanceof LivingEntity lv2) {
-         m_xdjgfpqn(stack, EquipmentSlot.MAINHAND, lv2, (arg4, i, arg5) -> arg4.value().m_umpbrnfg(world, i, arg5, C_zjvjrddv.ATTACKER, arg2, arg3));
+      if (stack != null && source.getAttacker() instanceof LivingEntity lv2) {
+         forEachEnchantment(
+            stack, EquipmentSlot.MAINHAND, lv2, (arg4, i, arg5) -> arg4.value().onTargetHit(world, i, arg5, EnchantmentEffectTarget.ATTACKER, entity, source)
+         );
       }
    }
 
    /**
     * @mapping {@literal hashed m_unfnerqk Lnet/minecraft/unmapped/C_jakrppis;m_unfnerqk(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_usxaxydn;)V}
-    * @mapping {@literal named m_unfnerqk Lnet/minecraft/enchantment/EnchantmentHelper;m_unfnerqk(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V}
+    * @mapping {@literal named applyLocationBasedEffects Lnet/minecraft/enchantment/EnchantmentHelper;applyLocationBasedEffects(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V}
     */
-   public static void m_unfnerqk(ServerWorld world, LivingEntity arg2) {
-      m_kvkboaps(arg2, (arg3, i, arg4) -> arg3.value().m_mfxiclqq(world, i, arg4, arg2));
+   public static void applyLocationBasedEffects(ServerWorld world, LivingEntity entity) {
+      forEachEquippedEnchantment(entity, (arg3, i, arg4) -> arg3.value().applyLocationBasedEffects(world, i, arg4, entity));
    }
 
    /**
     * @mapping {@literal hashed m_aqtkrfxn Lnet/minecraft/unmapped/C_jakrppis;m_aqtkrfxn(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_yuycoehb;)V}
-    * @mapping {@literal named m_aqtkrfxn Lnet/minecraft/enchantment/EnchantmentHelper;m_aqtkrfxn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;)V}
+    * @mapping {@literal named applyLocationBasedEffects Lnet/minecraft/enchantment/EnchantmentHelper;applyLocationBasedEffects(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;)V}
     */
-   public static void m_aqtkrfxn(ServerWorld world, ItemStack stack, LivingEntity owner, EquipmentSlot inSlot) {
-      m_xdjgfpqn(stack, inSlot, owner, (arg3, i, arg4) -> arg3.value().m_mfxiclqq(world, i, arg4, owner));
+   public static void applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity owner, EquipmentSlot inSlot) {
+      forEachEnchantment(stack, inSlot, owner, (arg3, i, arg4) -> arg3.value().applyLocationBasedEffects(world, i, arg4, owner));
    }
 
    /**
-    * Mapping not found
+    * @mapping {@literal hashed m_rgjmrwbl Lnet/minecraft/unmapped/C_jakrppis;m_rgjmrwbl(Lnet/minecraft/unmapped/C_usxaxydn;)V}
+    * @mapping {@literal named removeLocationBasedEffects Lnet/minecraft/enchantment/EnchantmentHelper;removeLocationBasedEffects(Lnet/minecraft/entity/LivingEntity;)V}
     */
-   public static void m_rgjmrwbl(LivingEntity arg) {
-      m_kvkboaps(arg, (arg2, i, arg3) -> arg2.value().m_auqlyhrd(i, arg3, arg));
+   public static void removeLocationBasedEffects(LivingEntity entity) {
+      forEachEquippedEnchantment(entity, (arg2, i, arg3) -> arg2.value().removeLocationBasedEffects(i, arg3, entity));
    }
 
    /**
     * @mapping {@literal hashed m_rpbekwgr Lnet/minecraft/unmapped/C_jakrppis;m_rpbekwgr(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_yuycoehb;)V}
-    * @mapping {@literal named m_rpbekwgr Lnet/minecraft/enchantment/EnchantmentHelper;m_rpbekwgr(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;)V}
+    * @mapping {@literal named removeLocationBasedEffects Lnet/minecraft/enchantment/EnchantmentHelper;removeLocationBasedEffects(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;)V}
     */
-   public static void m_rpbekwgr(ItemStack stack, LivingEntity owner, EquipmentSlot inSlot) {
-      m_xdjgfpqn(stack, inSlot, owner, (arg2, i, arg3) -> arg2.value().m_auqlyhrd(i, arg3, owner));
+   public static void removeLocationBasedEffects(ItemStack stack, LivingEntity owner, EquipmentSlot inSlot) {
+      forEachEnchantment(stack, inSlot, owner, (arg2, i, arg3) -> arg2.value().removeLocationBasedEffects(i, arg3, owner));
    }
 
    /**
     * @mapping {@literal hashed m_anckqezf Lnet/minecraft/unmapped/C_jakrppis;m_anckqezf(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_usxaxydn;)V}
-    * @mapping {@literal named m_anckqezf Lnet/minecraft/enchantment/EnchantmentHelper;m_anckqezf(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V}
+    * @mapping {@literal named tick Lnet/minecraft/enchantment/EnchantmentHelper;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V}
     */
-   public static void m_anckqezf(ServerWorld world, LivingEntity arg2) {
-      m_kvkboaps(arg2, (arg3, i, arg4) -> arg3.value().m_laluoqcj(world, i, arg4, arg2));
+   public static void tick(ServerWorld world, LivingEntity entity) {
+      forEachEquippedEnchantment(entity, (arg3, i, arg4) -> arg3.value().tick(world, i, arg4, entity));
    }
 
    /**
     * @mapping {@literal hashed m_wfidublc Lnet/minecraft/unmapped/C_jakrppis;m_wfidublc(Lnet/minecraft/unmapped/C_cjzoxshv;Lnet/minecraft/unmapped/C_usxaxydn;)I}
-    * @mapping {@literal named m_wfidublc Lnet/minecraft/enchantment/EnchantmentHelper;m_wfidublc(Lnet/minecraft/registry/Holder;Lnet/minecraft/entity/LivingEntity;)I}
+    * @mapping {@literal named getHighestEquippedLevel Lnet/minecraft/enchantment/EnchantmentHelper;getHighestEquippedLevel(Lnet/minecraft/registry/Holder;Lnet/minecraft/entity/LivingEntity;)I}
     */
-   public static int m_wfidublc(Holder<Enchantment> arg, LivingEntity entity) {
-      Iterable<ItemStack> iterable = arg.value().getEquipment(entity).values();
+   public static int getHighestEquippedLevel(Holder<Enchantment> enchantment, LivingEntity entity) {
+      Iterable<ItemStack> iterable = enchantment.value().getEquipment(entity).values();
       int i = 0;
 
       for (ItemStack lv : iterable) {
-         int j = m_byjosehc(arg, lv);
+         int j = getLevel(enchantment, lv);
          if (j > i) {
             i = j;
          }
@@ -357,93 +362,93 @@
 
    /**
     * @mapping {@literal hashed m_hsagtbhc Lnet/minecraft/unmapped/C_jakrppis;m_hsagtbhc(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;I)I}
-    * @mapping {@literal named m_hsagtbhc Lnet/minecraft/enchantment/EnchantmentHelper;m_hsagtbhc(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;I)I}
+    * @mapping {@literal named getProjectileCount Lnet/minecraft/enchantment/EnchantmentHelper;getProjectileCount(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;I)I}
     */
-   public static int m_hsagtbhc(ServerWorld world, ItemStack stack, Entity arg3, int i) {
-      MutableFloat mutableFloat = new MutableFloat((float)i);
-      m_akhrohzh(stack, (arg4, ix) -> arg4.value().m_kevrabge(world, ix, stack, arg3, mutableFloat));
+   public static int getProjectileCount(ServerWorld world, ItemStack stack, Entity entity, int baseCount) {
+      MutableFloat mutableFloat = new MutableFloat((float)baseCount);
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().modifyProjectileCount(world, i, stack, entity, mutableFloat));
       return Math.max(0, mutableFloat.intValue());
    }
 
    /**
     * @mapping {@literal hashed m_lkbuzftr Lnet/minecraft/unmapped/C_jakrppis;m_lkbuzftr(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;F)F}
-    * @mapping {@literal named m_lkbuzftr Lnet/minecraft/enchantment/EnchantmentHelper;m_lkbuzftr(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;F)F}
+    * @mapping {@literal named getProjectileSpeed Lnet/minecraft/enchantment/EnchantmentHelper;getProjectileSpeed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;F)F}
     */
-   public static float m_lkbuzftr(ServerWorld world, ItemStack stack, Entity arg3, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg4, i) -> arg4.value().m_zlpziyyk(world, i, stack, arg3, mutableFloat));
+   public static float getProjectileSpeed(ServerWorld world, ItemStack stack, Entity entity, float baseSpeed) {
+      MutableFloat mutableFloat = new MutableFloat(baseSpeed);
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().modifyProjectileSpread(world, i, stack, entity, mutableFloat));
       return Math.max(0.0F, mutableFloat.floatValue());
    }
 
    /**
     * @mapping {@literal hashed m_hilwldki Lnet/minecraft/unmapped/C_jakrppis;m_hilwldki(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_sddaxwyk;)I}
-    * @mapping {@literal named m_hilwldki Lnet/minecraft/enchantment/EnchantmentHelper;m_hilwldki(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)I}
+    * @mapping {@literal named getProjectilePiercing Lnet/minecraft/enchantment/EnchantmentHelper;getProjectilePiercing(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)I}
     */
-   public static int m_hilwldki(ServerWorld world, ItemStack arg2, ItemStack arg3) {
+   public static int getProjectilePiercing(ServerWorld world, ItemStack weapon, ItemStack projectile) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_akhrohzh(arg2, (arg3x, i) -> ((Enchantment)arg3x.value()).m_iehcgemg(world, i, arg3, mutableFloat));
+      forEachEnchantment(weapon, (arg3, i) -> arg3.value().modifyProjectilePiercing(world, i, projectile, mutableFloat));
       return Math.max(0, mutableFloat.intValue());
    }
 
    /**
     * @mapping {@literal hashed m_yolmdyfp Lnet/minecraft/unmapped/C_jakrppis;m_yolmdyfp(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_gstiksvs;Ljava/util/function/Consumer;)V}
-    * @mapping {@literal named m_yolmdyfp Lnet/minecraft/enchantment/EnchantmentHelper;m_yolmdyfp(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/projectile/PersistentProjectileEntity;Ljava/util/function/Consumer;)V}
+    * @mapping {@literal named onProjectileSpawned Lnet/minecraft/enchantment/EnchantmentHelper;onProjectileSpawned(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/projectile/PersistentProjectileEntity;Ljava/util/function/Consumer;)V}
     */
-   public static void m_yolmdyfp(ServerWorld world, ItemStack stack, PersistentProjectileEntity arg3, java.util.function.Consumer<Item> consumer) {
-      LivingEntity lv2 = arg3.getOwner() instanceof LivingEntity lv ? lv : null;
-      C_pjrjvgrp lv3 = new C_pjrjvgrp(stack, null, lv2, consumer);
-      m_akhrohzh(stack, (arg4, i) -> arg4.value().m_dgttciah(world, i, lv3, arg3));
+   public static void onProjectileSpawned(ServerWorld world, ItemStack stack, PersistentProjectileEntity projectile, java.util.function.Consumer<Item> onBreak) {
+      LivingEntity lv2 = projectile.getOwner() instanceof LivingEntity lv ? lv : null;
+      EnchantmentEffectContext lv3 = new EnchantmentEffectContext(stack, null, lv2, onBreak);
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().onProjectileSpawned(world, i, lv3, projectile));
    }
 
    /**
     * @mapping {@literal hashed m_etohkgai Lnet/minecraft/unmapped/C_jakrppis;m_etohkgai(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_astfners;Lnet/minecraft/unmapped/C_yuycoehb;Lnet/minecraft/unmapped/C_vgpupfxx;Lnet/minecraft/unmapped/C_txtbiemp;Ljava/util/function/Consumer;)V}
-    * @mapping {@literal named m_etohkgai Lnet/minecraft/enchantment/EnchantmentHelper;m_etohkgai(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/block/BlockState;Ljava/util/function/Consumer;)V}
+    * @mapping {@literal named onHitBlock Lnet/minecraft/enchantment/EnchantmentHelper;onHitBlock(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/block/BlockState;Ljava/util/function/Consumer;)V}
     */
-   public static void m_etohkgai(
+   public static void onHitBlock(
       ServerWorld world,
       ItemStack stack,
       @Nullable LivingEntity owner,
-      Entity arg4,
+      Entity entity,
       @Nullable EquipmentSlot inSlot,
-      Vec3d arg6,
+      Vec3d pos,
       BlockState state,
       java.util.function.Consumer<Item> onBreak
    ) {
-      C_pjrjvgrp lv = new C_pjrjvgrp(stack, inSlot, owner, onBreak);
-      m_akhrohzh(stack, (arg6x, i) -> ((Enchantment)arg6x.value()).m_ovgqiywz(world, i, lv, arg4, arg6, state));
+      EnchantmentEffectContext lv = new EnchantmentEffectContext(stack, inSlot, owner, onBreak);
+      forEachEnchantment(stack, (arg6, i) -> arg6.value().onHitBlock(world, i, lv, entity, pos, state));
    }
 
    /**
     * @mapping {@literal hashed m_efgilggg Lnet/minecraft/unmapped/C_jakrppis;m_efgilggg(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;I)I}
-    * @mapping {@literal named m_efgilggg Lnet/minecraft/enchantment/EnchantmentHelper;m_efgilggg(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
+    * @mapping {@literal named getRepairFromXp Lnet/minecraft/enchantment/EnchantmentHelper;getRepairFromXp(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;I)I}
     */
-   public static int m_efgilggg(ServerWorld world, ItemStack stack, int i) {
-      MutableFloat mutableFloat = new MutableFloat((float)i);
-      m_akhrohzh(stack, (arg3, ix) -> arg3.value().m_zzkivipg(world, ix, stack, mutableFloat));
+   public static int getRepairFromXp(ServerWorld world, ItemStack stack, int baseRepair) {
+      MutableFloat mutableFloat = new MutableFloat((float)baseRepair);
+      forEachEnchantment(stack, (arg3, i) -> arg3.value().modifyRepairFromXp(world, i, stack, mutableFloat));
       return Math.max(0, mutableFloat.intValue());
    }
 
    /**
     * @mapping {@literal hashed m_wbtbmiwo Lnet/minecraft/unmapped/C_jakrppis;m_wbtbmiwo(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_usxaxydn;Lnet/minecraft/unmapped/C_sbxfkpyv;F)F}
-    * @mapping {@literal named m_wbtbmiwo Lnet/minecraft/enchantment/EnchantmentHelper;m_wbtbmiwo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;F)F}
+    * @mapping {@literal named getEquipmentDropChance Lnet/minecraft/enchantment/EnchantmentHelper;getEquipmentDropChance(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;F)F}
     */
-   public static float m_wbtbmiwo(ServerWorld world, LivingEntity arg2, DamageSource arg3, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      RandomGenerator lv = arg2.m_dlwxaobh();
-      m_kvkboaps(arg2, (arg5, i, arg6) -> {
-         LootContext lvx = Enchantment.m_yyvgkyyg(world, i, arg2, arg3);
-         arg5.value().m_tujulygf(C_rkxlblfn.EQUIPMENT_DROPS).forEach(arg3xx -> {
-            if (arg3xx.enchanted() == C_zjvjrddv.VICTIM && arg3xx.affected() == C_zjvjrddv.VICTIM && arg3xx.m_sbmzbkam(lvx)) {
-               mutableFloat.setValue(((C_nzjqewao)arg3xx.effect()).m_usnsfqay(i, lv, mutableFloat.floatValue()));
+   public static float getEquipmentDropChance(ServerWorld world, LivingEntity attacker, DamageSource source, float baseDropChance) {
+      MutableFloat mutableFloat = new MutableFloat(baseDropChance);
+      RandomGenerator lv = attacker.getRandom();
+      forEachEquippedEnchantment(attacker, (arg5, i, arg6) -> {
+         LootContext lvx = Enchantment.createDamageContext(world, i, attacker, source);
+         arg5.value().getEffect(EnchantmentEffectComponentTypes.EQUIPMENT_DROPS).forEach(arg3x -> {
+            if (arg3x.enchanted() == EnchantmentEffectTarget.VICTIM && arg3x.affected() == EnchantmentEffectTarget.VICTIM && arg3x.matches(lvx)) {
+               mutableFloat.setValue(((EnchantmentValueEffect)arg3x.effect()).apply(i, lv, mutableFloat.floatValue()));
             }
          });
       });
-      if (arg3.getAttacker() instanceof LivingEntity lv3) {
-         m_kvkboaps(lv3, (arg5, i, arg6) -> {
-            LootContext lvx = Enchantment.m_yyvgkyyg(world, i, arg2, arg3);
-            arg5.value().m_tujulygf(C_rkxlblfn.EQUIPMENT_DROPS).forEach(arg3xx -> {
-               if (arg3xx.enchanted() == C_zjvjrddv.ATTACKER && arg3xx.affected() == C_zjvjrddv.VICTIM && arg3xx.m_sbmzbkam(lvx)) {
-                  mutableFloat.setValue(((C_nzjqewao)arg3xx.effect()).m_usnsfqay(i, lv, mutableFloat.floatValue()));
+      if (source.getAttacker() instanceof LivingEntity lv3) {
+         forEachEquippedEnchantment(lv3, (arg5, i, arg6) -> {
+            LootContext lvx = Enchantment.createDamageContext(world, i, attacker, source);
+            arg5.value().getEffect(EnchantmentEffectComponentTypes.EQUIPMENT_DROPS).forEach(arg3x -> {
+               if (arg3x.enchanted() == EnchantmentEffectTarget.ATTACKER && arg3x.affected() == EnchantmentEffectTarget.VICTIM && arg3x.matches(lvx)) {
+                  mutableFloat.setValue(((EnchantmentValueEffect)arg3x.effect()).apply(i, lv, mutableFloat.floatValue()));
                }
             });
          });
@@ -454,88 +459,90 @@
 
    /**
     * @mapping {@literal hashed m_cjzxcjvw Lnet/minecraft/unmapped/C_jakrppis;m_cjzxcjvw(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_qfoqahef;Ljava/util/function/BiConsumer;)V}
-    * @mapping {@literal named m_cjzxcjvw Lnet/minecraft/enchantment/EnchantmentHelper;m_cjzxcjvw(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlotGroup;Ljava/util/function/BiConsumer;)V}
+    * @mapping {@literal named applyAttributeModifiers Lnet/minecraft/enchantment/EnchantmentHelper;applyAttributeModifiers(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlotGroup;Ljava/util/function/BiConsumer;)V}
     */
-   public static void m_cjzxcjvw(ItemStack stack, EquipmentSlotGroup arg2, BiConsumer<Holder<EntityAttribute>, EntityAttributeModifier> biConsumer) {
-      m_akhrohzh(stack, (arg2x, i) -> ((Enchantment)arg2x.value()).m_tujulygf(C_rkxlblfn.ATTRIBUTES).forEach(arg3 -> {
-            if (((Enchantment)arg2x.value()).definition().slots().contains(arg2)) {
-               biConsumer.accept(arg3.attribute(), arg3.m_sepzipgo(i, arg2));
+   public static void applyAttributeModifiers(
+      ItemStack stack, EquipmentSlotGroup group, BiConsumer<Holder<EntityAttribute>, EntityAttributeModifier> applicator
+   ) {
+      forEachEnchantment(stack, (arg2, i) -> arg2.value().getEffect(EnchantmentEffectComponentTypes.ATTRIBUTES).forEach(arg3 -> {
+            if (((Enchantment)arg2.value()).definition().slots().contains(group)) {
+               applicator.accept(arg3.attribute(), arg3.createModifier(i, group));
             }
          }));
    }
 
    /**
     * @mapping {@literal hashed m_zkmvjzhi Lnet/minecraft/unmapped/C_jakrppis;m_zkmvjzhi(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_yuycoehb;Ljava/util/function/BiConsumer;)V}
-    * @mapping {@literal named m_zkmvjzhi Lnet/minecraft/enchantment/EnchantmentHelper;m_zkmvjzhi(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;Ljava/util/function/BiConsumer;)V}
+    * @mapping {@literal named applyAttributeModifiers Lnet/minecraft/enchantment/EnchantmentHelper;applyAttributeModifiers(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/EquipmentSlot;Ljava/util/function/BiConsumer;)V}
     */
-   public static void m_zkmvjzhi(ItemStack stack, EquipmentSlot arg2, BiConsumer<Holder<EntityAttribute>, EntityAttributeModifier> biConsumer) {
-      m_akhrohzh(stack, (arg2x, i) -> ((Enchantment)arg2x.value()).m_tujulygf(C_rkxlblfn.ATTRIBUTES).forEach(arg3 -> {
-            if (((Enchantment)arg2x.value()).m_jhglsmkm(arg2)) {
-               biConsumer.accept(arg3.attribute(), arg3.m_sepzipgo(i, arg2));
+   public static void applyAttributeModifiers(ItemStack stack, EquipmentSlot slot, BiConsumer<Holder<EntityAttribute>, EntityAttributeModifier> applicator) {
+      forEachEnchantment(stack, (arg2, i) -> arg2.value().getEffect(EnchantmentEffectComponentTypes.ATTRIBUTES).forEach(arg3 -> {
+            if (((Enchantment)arg2.value()).matchesSlot(slot)) {
+               applicator.accept(arg3.attribute(), arg3.createModifier(i, slot));
             }
          }));
    }
 
    /**
     * @mapping {@literal hashed m_qhyhygvf Lnet/minecraft/unmapped/C_jakrppis;m_qhyhygvf(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;)I}
-    * @mapping {@literal named m_qhyhygvf Lnet/minecraft/enchantment/EnchantmentHelper;m_qhyhygvf(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)I}
+    * @mapping {@literal named getFishingLuckBonus Lnet/minecraft/enchantment/EnchantmentHelper;getFishingLuckBonus(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)I}
     */
-   public static int m_qhyhygvf(ServerWorld world, ItemStack stack, Entity arg3) {
+   public static int getFishingLuckBonus(ServerWorld world, ItemStack stack, Entity entity) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_akhrohzh(stack, (arg4, i) -> arg4.value().m_kpljywnw(world, i, stack, arg3, mutableFloat));
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().modifyFishingLuckBonus(world, i, stack, entity, mutableFloat));
       return Math.max(0, mutableFloat.intValue());
    }
 
    /**
     * @mapping {@literal hashed m_eordtwww Lnet/minecraft/unmapped/C_jakrppis;m_eordtwww(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;)F}
-    * @mapping {@literal named m_eordtwww Lnet/minecraft/enchantment/EnchantmentHelper;m_eordtwww(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)F}
+    * @mapping {@literal named getFishingTimeReduction Lnet/minecraft/enchantment/EnchantmentHelper;getFishingTimeReduction(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)F}
     */
-   public static float m_eordtwww(ServerWorld world, ItemStack stack, Entity arg3) {
+   public static float getFishingTimeReduction(ServerWorld world, ItemStack stack, Entity entity) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_akhrohzh(stack, (arg4, i) -> arg4.value().m_sswkpgks(world, i, stack, arg3, mutableFloat));
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().modifyFishingTimeReduction(world, i, stack, entity, mutableFloat));
       return Math.max(0.0F, mutableFloat.floatValue());
    }
 
    /**
     * @mapping {@literal hashed m_zrsoxtbx Lnet/minecraft/unmapped/C_jakrppis;m_zrsoxtbx(Lnet/minecraft/unmapped/C_bdwnwhiu;Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_astfners;)I}
-    * @mapping {@literal named m_zrsoxtbx Lnet/minecraft/enchantment/EnchantmentHelper;m_zrsoxtbx(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)I}
+    * @mapping {@literal named getTridentReturnAcceleration Lnet/minecraft/enchantment/EnchantmentHelper;getTridentReturnAcceleration(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)I}
     */
-   public static int m_zrsoxtbx(ServerWorld world, ItemStack stack, Entity arg3) {
+   public static int getTridentReturnAcceleration(ServerWorld world, ItemStack stack, Entity entity) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_akhrohzh(stack, (arg4, i) -> arg4.value().m_tdrqsuwy(world, i, stack, arg3, mutableFloat));
+      forEachEnchantment(stack, (arg4, i) -> arg4.value().modifyTridentReturnAcceleration(world, i, stack, entity, mutableFloat));
       return Math.max(0, mutableFloat.intValue());
    }
 
    /**
     * @mapping {@literal hashed m_kcdilbhw Lnet/minecraft/unmapped/C_jakrppis;m_kcdilbhw(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_usxaxydn;F)F}
-    * @mapping {@literal named m_kcdilbhw Lnet/minecraft/enchantment/EnchantmentHelper;m_kcdilbhw(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;F)F}
+    * @mapping {@literal named getCrossbowChargeTime Lnet/minecraft/enchantment/EnchantmentHelper;getCrossbowChargeTime(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;F)F}
     */
-   public static float m_kcdilbhw(ItemStack stack, LivingEntity arg2, float f) {
-      MutableFloat mutableFloat = new MutableFloat(f);
-      m_akhrohzh(stack, (arg2x, i) -> ((Enchantment)arg2x.value()).m_bhhtcbyx(arg2.m_dlwxaobh(), i, mutableFloat));
+   public static float getCrossbowChargeTime(ItemStack stack, LivingEntity entity, float baseChargeTime) {
+      MutableFloat mutableFloat = new MutableFloat(baseChargeTime);
+      forEachEnchantment(stack, (arg2, i) -> arg2.value().modifyCrossbowChargeTime(entity.getRandom(), i, mutableFloat));
       return Math.max(0.0F, mutableFloat.floatValue());
    }
 
    /**
     * @mapping {@literal hashed m_urcuarne Lnet/minecraft/unmapped/C_jakrppis;m_urcuarne(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_usxaxydn;)F}
-    * @mapping {@literal named m_urcuarne Lnet/minecraft/enchantment/EnchantmentHelper;m_urcuarne(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)F}
+    * @mapping {@literal named getTridentSpinAttackStrength Lnet/minecraft/enchantment/EnchantmentHelper;getTridentSpinAttackStrength(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)F}
     */
-   public static float m_urcuarne(ItemStack stack, LivingEntity arg2) {
+   public static float getTridentSpinAttackStrength(ItemStack stack, LivingEntity entity) {
       MutableFloat mutableFloat = new MutableFloat(0.0F);
-      m_akhrohzh(stack, (arg2x, i) -> ((Enchantment)arg2x.value()).m_stvdursa(arg2.m_dlwxaobh(), i, mutableFloat));
+      forEachEnchantment(stack, (arg2, i) -> arg2.value().modifyTridentSpinAttackStrength(entity.getRandom(), i, mutableFloat));
       return mutableFloat.floatValue();
    }
 
    /**
     * @mapping {@literal hashed m_ruiicrds Lnet/minecraft/unmapped/C_jakrppis;m_ruiicrds(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_ednuhnnn;)Z}
-    * @mapping {@literal named m_ruiicrds Lnet/minecraft/enchantment/EnchantmentHelper;m_ruiicrds(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/tag/TagKey;)Z}
+    * @mapping {@literal named hasTag Lnet/minecraft/enchantment/EnchantmentHelper;hasTag(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/tag/TagKey;)Z}
     */
-   public static boolean m_ruiicrds(ItemStack stack, TagKey<Enchantment> arg2) {
+   public static boolean hasTag(ItemStack stack, TagKey<Enchantment> enchantment) {
       ItemEnchantmentsComponent lv = stack.getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT);
 
       for (Entry<Holder<Enchantment>> entry : lv.getEnchantmentEntries()) {
          Holder<Enchantment> lv2 = (Holder<Enchantment>)entry.getKey();
-         if (lv2.isIn(arg2)) {
+         if (lv2.isIn(enchantment)) {
             return true;
          }
       }
@@ -545,12 +552,12 @@
 
    /**
     * @mapping {@literal hashed m_plpqcodb Lnet/minecraft/unmapped/C_jakrppis;m_plpqcodb(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_pscqxfcs;)Z}
-    * @mapping {@literal named m_plpqcodb Lnet/minecraft/enchantment/EnchantmentHelper;m_plpqcodb(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Z}
+    * @mapping {@literal named has Lnet/minecraft/enchantment/EnchantmentHelper;has(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Z}
     */
-   public static boolean m_plpqcodb(ItemStack stack, DataComponentType<?> arg2) {
+   public static boolean has(ItemStack stack, DataComponentType<?> componentType) {
       MutableBoolean mutableBoolean = new MutableBoolean(false);
-      m_akhrohzh(stack, (arg2x, i) -> {
-         if (((Enchantment)arg2x.value()).effects().contains(arg2)) {
+      forEachEnchantment(stack, (arg2, i) -> {
+         if (arg2.value().effects().contains(componentType)) {
             mutableBoolean.setTrue();
          }
       });
@@ -559,10 +566,10 @@
 
    /**
     * @mapping {@literal hashed m_pbsmenak Lnet/minecraft/unmapped/C_jakrppis;m_pbsmenak(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_pscqxfcs;)Ljava/util/Optional;}
-    * @mapping {@literal named m_pbsmenak Lnet/minecraft/enchantment/EnchantmentHelper;m_pbsmenak(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Ljava/util/Optional;}
+    * @mapping {@literal named pickHighestLevel Lnet/minecraft/enchantment/EnchantmentHelper;pickHighestLevel(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Ljava/util/Optional;}
     */
-   public static <T> Optional<T> m_pbsmenak(ItemStack stack, DataComponentType<List<T>> arg2) {
-      Pair<List<T>, Integer> pair = m_hkpckyyg(stack, arg2);
+   public static <T> Optional<T> pickHighestLevel(ItemStack stack, DataComponentType<List<T>> componentType) {
+      Pair<List<T>, Integer> pair = getHighestLevel(stack, componentType);
       if (pair != null) {
          List<T> list = pair.getFirst();
          int i = pair.getSecond();
@@ -574,14 +581,14 @@
 
    /**
     * @mapping {@literal hashed m_hkpckyyg Lnet/minecraft/unmapped/C_jakrppis;m_hkpckyyg(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_pscqxfcs;)Lcom/mojang/datafixers/util/Pair;}
-    * @mapping {@literal named m_hkpckyyg Lnet/minecraft/enchantment/EnchantmentHelper;m_hkpckyyg(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Lcom/mojang/datafixers/util/Pair;}
+    * @mapping {@literal named getHighestLevel Lnet/minecraft/enchantment/EnchantmentHelper;getHighestLevel(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/DataComponentType;)Lcom/mojang/datafixers/util/Pair;}
     */
    @Nullable
-   public static <T> Pair<T, Integer> m_hkpckyyg(ItemStack stack, DataComponentType<T> arg2) {
+   public static <T> Pair<T, Integer> getHighestLevel(ItemStack stack, DataComponentType<T> componentType) {
       MutableObject<Pair<T, Integer>> mutableObject = new MutableObject<>();
-      m_akhrohzh(stack, (arg2x, i) -> {
+      forEachEnchantment(stack, (arg2, i) -> {
          if (mutableObject.getValue() == null || mutableObject.getValue().getSecond() < i) {
-            T object = ((Enchantment)arg2x.value()).effects().get(arg2);
+            T object = arg2.value().effects().get(componentType);
             if (object != null) {
                mutableObject.setValue(Pair.of(object, i));
             }
@@ -591,26 +598,29 @@
    }
 
    /**
-    * Mapping not found
+    * @mapping {@literal hashed m_obijpcqw Lnet/minecraft/unmapped/C_jakrppis;m_obijpcqw(Lnet/minecraft/unmapped/C_pscqxfcs;Lnet/minecraft/unmapped/C_usxaxydn;Ljava/util/function/Predicate;)Ljava/util/Optional;}
+    * @mapping {@literal named getContextForRandomEquipmentWith Lnet/minecraft/enchantment/EnchantmentHelper;getContextForRandomEquipmentWith(Lnet/minecraft/component/DataComponentType;Lnet/minecraft/entity/LivingEntity;Ljava/util/function/Predicate;)Ljava/util/Optional;}
     */
-   public static Optional<C_pjrjvgrp> m_obijpcqw(DataComponentType<?> arg, LivingEntity arg2, Predicate<ItemStack> predicate) {
-      List<C_pjrjvgrp> list = new ArrayList();
+   public static Optional<EnchantmentEffectContext> getContextForRandomEquipmentWith(
+      DataComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate
+   ) {
+      List<EnchantmentEffectContext> list = new ArrayList();
 
       for (EquipmentSlot lv : EquipmentSlot.values()) {
-         ItemStack lv2 = arg2.getEquippedStack(lv);
-         if (predicate.test(lv2)) {
+         ItemStack lv2 = entity.getEquippedStack(lv);
+         if (stackPredicate.test(lv2)) {
             ItemEnchantmentsComponent lv3 = lv2.getOrDefault(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent.DEFAULT);
 
             for (Entry<Holder<Enchantment>> entry : lv3.getEnchantmentEntries()) {
                Holder<Enchantment> lv4 = (Holder<Enchantment>)entry.getKey();
-               if (lv4.value().effects().contains(arg) && lv4.value().m_jhglsmkm(lv)) {
-                  list.add(new C_pjrjvgrp(lv2, lv, arg2));
+               if (lv4.value().effects().contains(componentType) && lv4.value().matchesSlot(lv)) {
+                  list.add(new EnchantmentEffectContext(lv2, lv, entity));
                }
             }
          }
       }
 
-      return Util.getRandomOrEmpty(list, arg2.m_dlwxaobh());
+      return Util.getRandomOrEmpty(list, entity.getRandom());
    }
 
    /**
@@ -645,31 +655,32 @@
 
    /**
     * @mapping {@literal hashed m_zzbecydw Lnet/minecraft/unmapped/C_jakrppis;m_zzbecydw(Lnet/minecraft/unmapped/C_rlomrsco;Lnet/minecraft/unmapped/C_sddaxwyk;ILnet/minecraft/unmapped/C_wqxmvzdq;Ljava/util/Optional;)Lnet/minecraft/unmapped/C_sddaxwyk;}
-    * @mapping {@literal named m_zzbecydw Lnet/minecraft/enchantment/EnchantmentHelper;m_zzbecydw(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Optional;)Lnet/minecraft/item/ItemStack;}
+    * @mapping {@literal named enchant Lnet/minecraft/enchantment/EnchantmentHelper;enchant(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILnet/minecraft/registry/DynamicRegistryManager;Ljava/util/Optional;)Lnet/minecraft/item/ItemStack;}
     */
-   public static ItemStack m_zzbecydw(
-      RandomGenerator random, ItemStack stack, int i, DynamicRegistryManager registryManager, Optional<? extends HolderSet<Enchantment>> optional
+   public static ItemStack enchant(
+      RandomGenerator random, ItemStack stack, int level, DynamicRegistryManager registryManager, Optional<? extends HolderSet<Enchantment>> enchantments
    ) {
-      return m_xnhbdqna(
+      return enchant(
          random,
          stack,
-         i,
-         (Stream<Holder<Enchantment>>)optional.map(HolderSet::stream).orElseGet(() -> registryManager.get(RegistryKeys.ENCHANTMENT).holders().map(arg -> arg))
+         level,
+         (Stream<Holder<Enchantment>>)enchantments.map(HolderSet::stream)
+            .orElseGet(() -> registryManager.get(RegistryKeys.ENCHANTMENT).holders().map(arg -> arg))
       );
    }
 
    /**
     * @mapping {@literal hashed m_xnhbdqna Lnet/minecraft/unmapped/C_jakrppis;m_xnhbdqna(Lnet/minecraft/unmapped/C_rlomrsco;Lnet/minecraft/unmapped/C_sddaxwyk;ILjava/util/stream/Stream;)Lnet/minecraft/unmapped/C_sddaxwyk;}
-    * @mapping {@literal named m_xnhbdqna Lnet/minecraft/enchantment/EnchantmentHelper;m_xnhbdqna(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILjava/util/stream/Stream;)Lnet/minecraft/item/ItemStack;}
+    * @mapping {@literal named enchant Lnet/minecraft/enchantment/EnchantmentHelper;enchant(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILjava/util/stream/Stream;)Lnet/minecraft/item/ItemStack;}
     */
-   public static ItemStack m_xnhbdqna(RandomGenerator random, ItemStack stack, int i, Stream<Holder<Enchantment>> stream) {
-      List<EnchantmentLevelEntry> list = m_udfcqeza(random, stack, i, stream);
+   public static ItemStack enchant(RandomGenerator random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) {
+      List<EnchantmentLevelEntry> list = generateEnchantments(random, stack, level, possibleEnchantments);
       if (stack.isOf(Items.BOOK)) {
          stack = new ItemStack(Items.ENCHANTED_BOOK);
       }
 

The diff for this file is not complete!

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View the diff here (3/3):
Continuation of the last diff...
       for (EnchantmentLevelEntry lv : list) {
-         stack.m_nisvbeaw(lv.f_ykbaoghe, lv.level);
+         stack.m_nisvbeaw(lv.enchantment, lv.level);
       }
 
       return stack;
@@ -677,23 +688,25 @@
 
    /**
     * @mapping {@literal hashed m_udfcqeza Lnet/minecraft/unmapped/C_jakrppis;m_udfcqeza(Lnet/minecraft/unmapped/C_rlomrsco;Lnet/minecraft/unmapped/C_sddaxwyk;ILjava/util/stream/Stream;)Ljava/util/List;}
-    * @mapping {@literal named m_udfcqeza Lnet/minecraft/enchantment/EnchantmentHelper;m_udfcqeza(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILjava/util/stream/Stream;)Ljava/util/List;}
+    * @mapping {@literal named generateEnchantments Lnet/minecraft/enchantment/EnchantmentHelper;generateEnchantments(Lnet/minecraft/util/random/RandomGenerator;Lnet/minecraft/item/ItemStack;ILjava/util/stream/Stream;)Ljava/util/List;}
     */
-   public static List<EnchantmentLevelEntry> m_udfcqeza(RandomGenerator random, ItemStack stack, int i, Stream<Holder<Enchantment>> stream) {
+   public static List<EnchantmentLevelEntry> generateEnchantments(
+      RandomGenerator random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments
+   ) {
       List<EnchantmentLevelEntry> list = Lists.<EnchantmentLevelEntry>newArrayList();
       Item lv = stack.getItem();
       int j = lv.getEnchantability();
       if (j <= 0) {
          return list;
       } else {
-         i += 1 + random.nextInt(j / 4 + 1) + random.nextInt(j / 4 + 1);
+         level += 1 + random.nextInt(j / 4 + 1) + random.nextInt(j / 4 + 1);
          float f = (random.nextFloat() + random.nextFloat() - 1.0F) * 0.15F;
-         i = MathHelper.clamp(Math.round((float)i + (float)i * f), 1, Integer.MAX_VALUE);
-         List<EnchantmentLevelEntry> list2 = m_pngonrhw(i, stack, stream);
+         level = MathHelper.clamp(Math.round((float)level + (float)level * f), 1, Integer.MAX_VALUE);
+         List<EnchantmentLevelEntry> list2 = getPossibleLevelEntries(level, stack, possibleEnchantments);
          if (!list2.isEmpty()) {
             Weighting.getRandomItem(random, list2).ifPresent(list::add);
 
-            while (random.nextInt(50) <= i) {
+            while (random.nextInt(50) <= level) {
                if (!list.isEmpty()) {
                   removeConflicts(list2, Util.getLast(list));
                }
@@ -703,7 +716,7 @@
                }
 
                Weighting.getRandomItem(random, list2).ifPresent(list::add);
-               i /= 2;
+               level /= 2;
             }
          }
 
@@ -722,15 +735,16 @@
     * @mapping {@literal named removeConflicts Lnet/minecraft/enchantment/EnchantmentHelper;removeConflicts(Ljava/util/List;Lnet/minecraft/enchantment/EnchantmentLevelEntry;)V}
     */
    public static void removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry) {
-      possibleEntries.removeIf(arg2 -> !Enchantment.m_ycasfcso(pickedEntry.f_ykbaoghe, arg2.f_ykbaoghe));
+      possibleEntries.removeIf(arg2 -> !Enchantment.areCompatible(pickedEntry.enchantment, arg2.enchantment));
    }
 
    /**
-    * Mapping not found
+    * @mapping {@literal hashed m_ecxgwxiu Lnet/minecraft/unmapped/C_jakrppis;m_ecxgwxiu(Ljava/util/Collection;Lnet/minecraft/unmapped/C_cjzoxshv;)Z}
+    * @mapping {@literal named isCompatible Lnet/minecraft/enchantment/EnchantmentHelper;isCompatible(Ljava/util/Collection;Lnet/minecraft/registry/Holder;)Z}
     */
-   public static boolean m_ecxgwxiu(Collection<Holder<Enchantment>> collection, Holder<Enchantment> arg) {
-      for (Holder<Enchantment> lv : collection) {
-         if (!Enchantment.m_ycasfcso(lv, arg)) {
+   public static boolean isCompatible(Collection<Holder<Enchantment>> currentEnchantments, Holder<Enchantment> newEnchantment) {
+      for (Holder<Enchantment> lv : currentEnchantments) {
+         if (!Enchantment.areCompatible(lv, newEnchantment)) {
             return false;
          }
       }
@@ -740,16 +754,16 @@
 
    /**
     * @mapping {@literal hashed m_pngonrhw Lnet/minecraft/unmapped/C_jakrppis;m_pngonrhw(ILnet/minecraft/unmapped/C_sddaxwyk;Ljava/util/stream/Stream;)Ljava/util/List;}
-    * @mapping {@literal named m_pngonrhw Lnet/minecraft/enchantment/EnchantmentHelper;m_pngonrhw(ILnet/minecraft/item/ItemStack;Ljava/util/stream/Stream;)Ljava/util/List;}
+    * @mapping {@literal named getPossibleLevelEntries Lnet/minecraft/enchantment/EnchantmentHelper;getPossibleLevelEntries(ILnet/minecraft/item/ItemStack;Ljava/util/stream/Stream;)Ljava/util/List;}
     */
-   public static List<EnchantmentLevelEntry> m_pngonrhw(int i, ItemStack stack, Stream<Holder<Enchantment>> stream) {
+   public static List<EnchantmentLevelEntry> getPossibleLevelEntries(int level, ItemStack stack, Stream<Holder<Enchantment>> possibleEnchantments) {
       List<EnchantmentLevelEntry> list = Lists.<EnchantmentLevelEntry>newArrayList();
       boolean bl = stack.isOf(Items.BOOK);
-      stream.filter(arg2 -> ((Enchantment)arg2.value()).m_znzmqxec(stack) || bl).forEach(arg -> {
+      possibleEnchantments.filter(arg2 -> ((Enchantment)arg2.value()).isPrimaryItem(stack) || bl).forEach(arg -> {
          Enchantment lv = (Enchantment)arg.value();
 
          for (int j = lv.getMaxLevel(); j >= lv.getMinLevel(); j--) {
-            if (i >= lv.getMinPower(j) && i <= lv.getMaxPower(j)) {
+            if (level >= lv.getMinPower(j) && level <= lv.getMaxPower(j)) {
                list.add(new EnchantmentLevelEntry(arg, j));
                break;
             }
@@ -760,38 +774,40 @@
 
    /**
     * @mapping {@literal hashed m_spmqbsrk Lnet/minecraft/unmapped/C_jakrppis;m_spmqbsrk(Lnet/minecraft/unmapped/C_sddaxwyk;Lnet/minecraft/unmapped/C_wqxmvzdq;Lnet/minecraft/unmapped/C_xhhleach;Lnet/minecraft/unmapped/C_jiailwzt;Lnet/minecraft/unmapped/C_rlomrsco;)V}
-    * @mapping {@literal named m_spmqbsrk Lnet/minecraft/enchantment/EnchantmentHelper;m_spmqbsrk(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/util/random/RandomGenerator;)V}
+    * @mapping {@literal named enchantFromProvider Lnet/minecraft/enchantment/EnchantmentHelper;enchantFromProvider(Lnet/minecraft/item/ItemStack;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/util/random/RandomGenerator;)V}
     */
-   public static void m_spmqbsrk(
-      ItemStack stack, DynamicRegistryManager registryManager, RegistryKey<C_qraehchg> registryKey, LocalDifficulty arg4, RandomGenerator random
+   public static void enchantFromProvider(
+      ItemStack stack, DynamicRegistryManager registryManager, RegistryKey<EnchantmentProvider> registryKey, LocalDifficulty difficulty, RandomGenerator random
    ) {
-      C_qraehchg lv = registryManager.get(RegistryKeys.ENCHANTMENT_PROVIDER).get(registryKey);
+      EnchantmentProvider lv = registryManager.get(RegistryKeys.ENCHANTMENT_PROVIDER).get(registryKey);
       if (lv != null) {
-         m_iefpfmdo(stack, arg5 -> lv.m_mwqiigvy(stack, arg5, random, arg4));
+         applyEnchantments(stack, arg5 -> lv.enchant(stack, arg5, random, difficulty));
       }
    }
 
    /**
-    * @mapping {@literal hashed net/minecraft/unmapped/C_jakrppis$C_wtxpyhvg}
-    * @mapping {@literal named net/minecraft/enchantment/EnchantmentHelper$C_wtxpyhvg}
+    * @mapping {@literal hashed net/minecraft/unmapped/C_jakrppis$C_jdhxivxn}
+    * @mapping {@literal named net/minecraft/enchantment/EnchantmentHelper$Consumer}
     */
    @FunctionalInterface
-   interface C_wtxpyhvg {
+   interface Consumer {
       /**
-       * Mapping not found
+       * @mapping {@literal hashed accept Lnet/minecraft/unmapped/C_jakrppis$C_jdhxivxn;accept(Lnet/minecraft/unmapped/C_cjzoxshv;I)V}
+       * @mapping {@literal named accept Lnet/minecraft/enchantment/EnchantmentHelper$Consumer;accept(Lnet/minecraft/registry/Holder;I)V}
        */
-      void accept(Holder<Enchantment> arg, int i, C_pjrjvgrp arg2);
+      void accept(Holder<Enchantment> enchantment, int level);
    }
 
    /**
-    * @mapping {@literal hashed net/minecraft/unmapped/C_jakrppis$C_jdhxivxn}
-    * @mapping {@literal named net/minecraft/enchantment/EnchantmentHelper$Consumer}
+    * @mapping {@literal hashed net/minecraft/unmapped/C_jakrppis$C_wtxpyhvg}
+    * @mapping {@literal named net/minecraft/enchantment/EnchantmentHelper$ContextAwareConsumer}
     */
    @FunctionalInterface
-   interface Consumer {
+   interface ContextAwareConsumer {
       /**
-       * Mapping not found
+       * @mapping {@literal hashed accept Lnet/minecraft/unmapped/C_jakrppis$C_wtxpyhvg;accept(Lnet/minecraft/unmapped/C_cjzoxshv;ILnet/minecraft/unmapped/C_pjrjvgrp;)V}
+       * @mapping {@literal named accept Lnet/minecraft/enchantment/EnchantmentHelper$ContextAwareConsumer;accept(Lnet/minecraft/registry/Holder;ILnet/minecraft/enchantment/EnchantmentEffectContext;)V}
        */
-      void accept(Holder<Enchantment> arg, int i);
+      void accept(Holder<Enchantment> enchantment, int level, EnchantmentEffectContext context);
    }
 }


The remaining diff is too long!

Please sign in to comment.