Skip to content

Commit

Permalink
fix 'overrides final method' error
Browse files Browse the repository at this point in the history
  • Loading branch information
supersaiyansubtlety committed Dec 4, 2024
1 parent 687d84e commit 95f47a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mappings/net/minecraft/entity/InteractionEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ CLASS net/minecraft/unmapped/C_hvnhlgso net/minecraft/entity/InteractionEntity
FIELD f_xnjxidmy ATTACK_KEY Ljava/lang/String;
FIELD f_ygkdbibs HEIGHT_KEY Ljava/lang/String;
FIELD f_ztmqbiqd RESPONSE_KEY Ljava/lang/String;
METHOD m_acettnna getDimensions ()Lnet/minecraft/unmapped/C_sszpscpo;
METHOD m_dyvbaohz getHeight ()F
METHOD m_mcajgzfg getWidth ()F
METHOD m_acettnna getInteractionDimensions ()Lnet/minecraft/unmapped/C_sszpscpo;
METHOD m_dyvbaohz getInteractionHeight ()F
METHOD m_mcajgzfg getInteractionWidth ()F
METHOD m_oeurfxnz setResponse (Z)V
ARG 1 response
METHOD m_stegizgr getResponse ()Z
METHOD m_uesbqavb setWidth (F)V
METHOD m_uesbqavb setInteractionWidth (F)V
ARG 1 width
METHOD m_yvnkyldm setHeight (F)V
METHOD m_yvnkyldm setInteractionHeight (F)V
ARG 1 height
CLASS C_nzivpjdf Interaction
FIELD f_dckrisox CODEC Lcom/mojang/serialization/Codec;
Expand Down

1 comment on commit 95f47a9

@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 95f47a9, 1 file(s) were updated with 17 line(s) added and 17 removed compared to the latest Quilt Mappings version.

View the diff here:
diff -bur namedTargetSrc/net/minecraft/entity/InteractionEntity.java namedSrc/net/minecraft/entity/InteractionEntity.java
--- namedTargetSrc/net/minecraft/entity/InteractionEntity.java	2024-12-04 02:13:16.383909087 +0000
+++ namedSrc/net/minecraft/entity/InteractionEntity.java	2024-12-04 02:12:07.627788062 +0000
@@ -114,11 +114,11 @@
    @Override
    protected void readCustomDataFromNbt(NbtCompound arg) {
       if (arg.contains("width", NbtElement.NUMBER_TYPE)) {
-         this.setWidth(arg.getFloat("width"));
+         this.setInteractionWidth(arg.getFloat("width"));
       }
 
       if (arg.contains("height", NbtElement.NUMBER_TYPE)) {
-         this.setHeight(arg.getFloat("height"));
+         this.setInteractionHeight(arg.getFloat("height"));
       }
 
       if (arg.contains("attack")) {
@@ -148,8 +148,8 @@
     */
    @Override
    protected void writeCustomDataToNbt(NbtCompound arg) {
-      arg.putFloat("width", this.getWidth());
-      arg.putFloat("height", this.getHeight());
+      arg.putFloat("width", this.getInteractionWidth());
+      arg.putFloat("height", this.getInteractionHeight());
       if (this.attack != null) {
          InteractionEntity.Interaction.CODEC.encodeStart(NbtOps.INSTANCE, this.attack).ifSuccess(arg2 -> arg.put("attack", arg2));
       }
@@ -269,33 +269,33 @@
 
    /**
     * @mapping {@literal hashed m_uesbqavb Lnet/minecraft/unmapped/C_hvnhlgso;m_uesbqavb(F)V}
-    * @mapping {@literal named setWidth Lnet/minecraft/entity/InteractionEntity;setWidth(F)V}
+    * @mapping {@literal named setInteractionWidth Lnet/minecraft/entity/InteractionEntity;setInteractionWidth(F)V}
     */
-   private void setWidth(float width) {
+   private void setInteractionWidth(float width) {
       this.dataTracker.set(WIDTH, width);
    }
 
    /**
     * @mapping {@literal hashed m_mcajgzfg Lnet/minecraft/unmapped/C_hvnhlgso;m_mcajgzfg()F}
-    * @mapping {@literal named getWidth Lnet/minecraft/entity/InteractionEntity;getWidth()F}
+    * @mapping {@literal named getInteractionWidth Lnet/minecraft/entity/InteractionEntity;getInteractionWidth()F}
     */
-   private float getWidth() {
+   private float getInteractionWidth() {
       return this.dataTracker.get(WIDTH);
    }
 
    /**
     * @mapping {@literal hashed m_yvnkyldm Lnet/minecraft/unmapped/C_hvnhlgso;m_yvnkyldm(F)V}
-    * @mapping {@literal named setHeight Lnet/minecraft/entity/InteractionEntity;setHeight(F)V}
+    * @mapping {@literal named setInteractionHeight Lnet/minecraft/entity/InteractionEntity;setInteractionHeight(F)V}
     */
-   private void setHeight(float height) {
+   private void setInteractionHeight(float height) {
       this.dataTracker.set(HEIGHT, height);
    }
 
    /**
     * @mapping {@literal hashed m_dyvbaohz Lnet/minecraft/unmapped/C_hvnhlgso;m_dyvbaohz()F}
-    * @mapping {@literal named getHeight Lnet/minecraft/entity/InteractionEntity;getHeight()F}
+    * @mapping {@literal named getInteractionHeight Lnet/minecraft/entity/InteractionEntity;getInteractionHeight()F}
     */
-   private float getHeight() {
+   private float getInteractionHeight() {
       return this.dataTracker.get(HEIGHT);
    }
 
@@ -317,10 +317,10 @@
 
    /**
     * @mapping {@literal hashed m_acettnna Lnet/minecraft/unmapped/C_hvnhlgso;m_acettnna()Lnet/minecraft/unmapped/C_sszpscpo;}
-    * @mapping {@literal named getDimensions Lnet/minecraft/entity/InteractionEntity;getDimensions()Lnet/minecraft/entity/EntityDimensions;}
+    * @mapping {@literal named getInteractionDimensions Lnet/minecraft/entity/InteractionEntity;getInteractionDimensions()Lnet/minecraft/entity/EntityDimensions;}
     */
-   private EntityDimensions getDimensions() {
-      return EntityDimensions.changing(this.getWidth(), this.getHeight());
+   private EntityDimensions getInteractionDimensions() {
+      return EntityDimensions.changing(this.getInteractionWidth(), this.getInteractionHeight());
    }
 
    /**
@@ -328,7 +328,7 @@
     */
    @Override
    public EntityDimensions getDimensions(EntityPose pose) {
-      return this.getDimensions();
+      return this.getInteractionDimensions();
    }
 
    /**
@@ -336,7 +336,7 @@
     */
    @Override
    protected Box getDimensionsBoxAt(Vec3d pos) {
-      return this.getDimensions().getBoxAt(pos);
+      return this.getInteractionDimensions().getBoxAt(pos);
    }
 
    /**

Please sign in to comment.