Class PigEntity

All Implemented Interfaces:
EntityLike, ItemSteerable, Saddleable, CommandOutput, Nameable

public class PigEntity
extends AnimalEntity
implements ItemSteerable, Saddleable
Mappings:
Namespace Name
official bby
intermediary net/minecraft/class_1452
named net/minecraft/entity/passive/PigEntity
  • Field Details

    • SADDLED

      private static final TrackedData<Boolean> SADDLED
      Mappings:
      Namespace Name Mixin selector
      official bm Lbby;bm:Lvk;
      intermediary field_6816 Lnet/minecraft/class_1452;field_6816:Lnet/minecraft/class_2940;
      named SADDLED Lnet/minecraft/entity/passive/PigEntity;SADDLED:Lnet/minecraft/entity/data/TrackedData;
    • BOOST_TIME

      private static final TrackedData<Integer> BOOST_TIME
      Mappings:
      Namespace Name Mixin selector
      official bn Lbby;bn:Lvk;
      intermediary field_6815 Lnet/minecraft/class_1452;field_6815:Lnet/minecraft/class_2940;
      named BOOST_TIME Lnet/minecraft/entity/passive/PigEntity;BOOST_TIME:Lnet/minecraft/entity/data/TrackedData;
    • BREEDING_INGREDIENT

      private static final Ingredient BREEDING_INGREDIENT
      Mappings:
      Namespace Name Mixin selector
      official bo Lbby;bo:Lbqk;
      intermediary field_6817 Lnet/minecraft/class_1452;field_6817:Lnet/minecraft/class_1856;
      named BREEDING_INGREDIENT Lnet/minecraft/entity/passive/PigEntity;BREEDING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
    • saddledComponent

      private final SaddledComponent saddledComponent
      Mappings:
      Namespace Name Mixin selector
      official bp Lbby;bp:Larf;
      intermediary field_23230 Lnet/minecraft/class_1452;field_23230:Lnet/minecraft/class_4980;
      named saddledComponent Lnet/minecraft/entity/passive/PigEntity;saddledComponent:Lnet/minecraft/entity/SaddledComponent;
  • Constructor Details

    • PigEntity

      public PigEntity​(EntityType<? extends PigEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqv;<init>(Laqz;Lbtv;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u Larj;u()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • createPigAttributes

      public static DefaultAttributeContainer.Builder createPigAttributes()
      Mappings:
      Namespace Name Mixin selector
      official o Lbby;o()Lash$a;
      intermediary method_26890 Lnet/minecraft/class_1452;method_26890()Lnet/minecraft/class_5132$class_5133;
      named createPigAttributes Lnet/minecraft/entity/passive/PigEntity;createPigAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getPrimaryPassenger

      @Nullable public Entity getPrimaryPassenger()
      Overrides:
      getPrimaryPassenger in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cu Laqv;cu()Laqv;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1297;
      named getPrimaryPassenger Lnet/minecraft/entity/Entity;getPrimaryPassenger()Lnet/minecraft/entity/Entity;
    • canBeControlledByRider

      public boolean canBeControlledByRider()
      Overrides:
      canBeControlledByRider in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official eS Larj;eS()Z
      intermediary method_5956 Lnet/minecraft/class_1308;method_5956()Z
      named canBeControlledByRider Lnet/minecraft/entity/mob/MobEntity;canBeControlledByRider()Z
    • onTrackedDataSet

      public void onTrackedDataSet​(TrackedData<?> data)
      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lvk;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official e Laqv;e()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official p Larj;p()Laef;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound​(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lari;c(Laqf;)Laef;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lari;q()Laef;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • playStepSound

      protected void playStepSound​(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lfx;Lcht;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • interactMob

      public ActionResult interactMob​(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b Larj;b(Lbhl;Lapp;)Lapq;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • canBeSaddled

      public boolean canBeSaddled()
      Specified by:
      canBeSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official c Larw;c()Z
      intermediary method_6765 Lnet/minecraft/class_5146;method_6765()Z
      named canBeSaddled Lnet/minecraft/entity/Saddleable;canBeSaddled()Z
    • dropInventory

      protected void dropInventory()
      Overrides:
      dropInventory in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official dM Lari;dM()V
      intermediary method_16078 Lnet/minecraft/class_1309;method_16078()V
      named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory()V
    • isSaddled

      public boolean isSaddled()
      Specified by:
      isSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official N_ Larw;N_()Z
      intermediary method_6725 Lnet/minecraft/class_5146;method_6725()Z
      named isSaddled Lnet/minecraft/entity/Saddleable;isSaddled()Z
    • saddle

      public void saddle​(@Nullable SoundCategory sound)
      Specified by:
      saddle in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      official a Larw;a(Laeh;)V
      intermediary method_6576 Lnet/minecraft/class_5146;method_6576(Lnet/minecraft/class_3419;)V
      named saddle Lnet/minecraft/entity/Saddleable;saddle(Lnet/minecraft/sound/SoundCategory;)V
    • updatePassengerForDismount

      public Vec3d updatePassengerForDismount​(LivingEntity passenger)
      Overrides:
      updatePassengerForDismount in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lari;)Ldiu;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
    • onStruckByLightning

      public void onStruckByLightning​(ServerWorld world, LightningEntity lightning)
      Overrides:
      onStruckByLightning in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Laav;Larh;)V
      intermediary method_5800 Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
      named onStruckByLightning Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
    • travel

      public void travel​(Vec3d movementInput)
      Overrides:
      travel in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official h Lari;h(Ldiu;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
    • getSaddledSpeed

      public float getSaddledSpeed()
      Specified by:
      getSaddledSpeed in interface ItemSteerable
      Mappings:
      Namespace Name Mixin selector
      official O_ Larg;O_()F
      intermediary method_26316 Lnet/minecraft/class_4981;method_26316()F
      named getSaddledSpeed Lnet/minecraft/entity/ItemSteerable;getSaddledSpeed()F
    • setMovementInput

      public void setMovementInput​(Vec3d movementInput)
      Specified by:
      setMovementInput in interface ItemSteerable
      Mappings:
      Namespace Name Mixin selector
      official a_ Larg;a_(Ldiu;)V
      intermediary method_26315 Lnet/minecraft/class_4981;method_26315(Lnet/minecraft/class_243;)V
      named setMovementInput Lnet/minecraft/entity/ItemSteerable;setMovementInput(Lnet/minecraft/util/math/Vec3d;)V
    • consumeOnAStickItem

      public boolean consumeOnAStickItem()
      Specified by:
      consumeOnAStickItem in interface ItemSteerable
      Mappings:
      Namespace Name Mixin selector
      official P_ Larg;P_()Z
      intermediary method_6577 Lnet/minecraft/class_4981;method_6577()Z
      named consumeOnAStickItem Lnet/minecraft/entity/ItemSteerable;consumeOnAStickItem()Z
    • createChild

      public PigEntity createChild​(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbby;b(Laav;Laqt;)Lbby;
      intermediary method_6574 Lnet/minecraft/class_1452;method_6574(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1452;
      named createChild Lnet/minecraft/entity/passive/PigEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PigEntity;
    • isBreedingItem

      public boolean isBreedingItem​(ItemStack stack)
      Overrides:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lbbj;k(Lbnv;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
    • method_29919

      @Environment(CLIENT) public Vec3d method_29919()
      Overrides:
      method_29919 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cp Laqv;cp()Ldiu;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      named method_29919 Lnet/minecraft/entity/Entity;method_29919()Lnet/minecraft/util/math/Vec3d;