Skip to content

Commit

Permalink
Rename the HorseBaseEntity class to AbstractHorseEntity (FabricMC#3098)
Browse files Browse the repository at this point in the history
* Rename the HorseBaseEntity class to AbstractHorseEntity

Fixes FabricMC#3082

* Rename the HorseBaseEntityRenderer class to AbstractHorseEntityRenderer
  • Loading branch information
haykam821 authored Apr 20, 2022
1 parent 07ca9a4 commit 86ed8cc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_875 net/minecraft/client/render/entity/HorseBaseEntityRenderer
CLASS net/minecraft/class_875 net/minecraft/client/render/entity/AbstractHorseEntityRenderer
FIELD field_4641 scale F
METHOD <init> (Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_549;F)V
ARG 1 ctx
Expand Down
2 changes: 1 addition & 1 deletion mappings/net/minecraft/entity/LivingEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
METHOD method_6091 travel (Lnet/minecraft/class_243;)V
COMMENT Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.
COMMENT
COMMENT <p>See vanilla examples of {@linkplain net.minecraft.entity.passive.HorseBaseEntity#travel
COMMENT <p>See vanilla examples of {@linkplain net.minecraft.entity.passive.AbstractHorseEntity#travel
COMMENT custom horse vehicle} and {@linkplain net.minecraft.entity.mob.FlyingEntity#travel
COMMENT flying entities}.
ARG 1 movementInput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_1496 net/minecraft/entity/passive/HorseBaseEntity
CLASS net/minecraft/class_1496 net/minecraft/entity/passive/AbstractHorseEntity
FIELD field_18118 PARENT_HORSE_PREDICATE Lnet/minecraft/class_4051;
FIELD field_25374 BREEDING_INGREDIENT Lnet/minecraft/class_1856;
FIELD field_30419 TAMED_FLAG I
Expand Down
18 changes: 9 additions & 9 deletions unpick-definitions/entity_flags.unpick
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ target_method net/minecraft/entity/passive/FoxEntity setFoxFlag (IZ)V
param 0 fox_flags


constant horse_flags net/minecraft/entity/passive/HorseBaseEntity TAMED_FLAG
constant horse_flags net/minecraft/entity/passive/HorseBaseEntity SADDLED_FLAG
constant horse_flags net/minecraft/entity/passive/HorseBaseEntity BRED_FLAG
constant horse_flags net/minecraft/entity/passive/HorseBaseEntity EATING_GRASS_FLAG
constant horse_flags net/minecraft/entity/passive/HorseBaseEntity ANGRY_FLAG
constant horse_flags net/minecraft/entity/passive/HorseBaseEntity EATING_FLAG

target_method net/minecraft/entity/passive/HorseBaseEntity getHorseFlag (I)Z
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity TAMED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity SADDLED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity BRED_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity EATING_GRASS_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity ANGRY_FLAG
constant horse_flags net/minecraft/entity/passive/AbstractHorseEntity EATING_FLAG

target_method net/minecraft/entity/passive/AbstractHorseEntity getHorseFlag (I)Z
param 0 horse_flags
target_method net/minecraft/entity/passive/HorseBaseEntity setHorseFlag (IZ)V
target_method net/minecraft/entity/passive/AbstractHorseEntity setHorseFlag (IZ)V
param 0 horse_flags


Expand Down

0 comments on commit 86ed8cc

Please sign in to comment.