Package net.minecraft

Class class_7298

All Implemented Interfaces:
InventoryOwner, CommandOutput, Nameable, EntityLike, GameEventListener

public class class_7298 extends PathAwareEntity implements InventoryOwner, GameEventListener
Mappings:
Namespace Name
official bkv
intermediary net/minecraft/class_7298
named net/minecraft/class_7298
  • Field Details

    • field_38404

      private static final boolean field_38404
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbkv;d:Z
      intermediary field_38404 Lnet/minecraft/class_7298;field_38404:Z
      named field_38404 Lnet/minecraft/class_7298;field_38404:Z
    • field_38405

      private static final int field_38405
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbkv;e:I
      intermediary field_38405 Lnet/minecraft/class_7298;field_38405:I
      named field_38405 Lnet/minecraft/class_7298;field_38405:I
    • field_38399

      private static final Vec3i field_38399
      Mappings:
      Namespace Name Mixin selector
      official bW Lbkv;bW:Lhj;
      intermediary field_38399 Lnet/minecraft/class_7298;field_38399:Lnet/minecraft/class_2382;
      named field_38399 Lnet/minecraft/class_7298;field_38399:Lnet/minecraft/util/math/Vec3i;
    • field_38398

      protected static final ImmutableList<SensorType<? extends Sensor<? super class_7298>>> field_38398
      Mappings:
      Namespace Name Mixin selector
      official b Lbkv;b:Lcom/google/common/collect/ImmutableList;
      intermediary field_38398 Lnet/minecraft/class_7298;field_38398:Lcom/google/common/collect/ImmutableList;
      named field_38398 Lnet/minecraft/class_7298;field_38398:Lcom/google/common/collect/ImmutableList;
    • field_38403

      protected static final ImmutableList<MemoryModuleType<?>> field_38403
      Mappings:
      Namespace Name Mixin selector
      official c Lbkv;c:Lcom/google/common/collect/ImmutableList;
      intermediary field_38403 Lnet/minecraft/class_7298;field_38403:Lcom/google/common/collect/ImmutableList;
      named field_38403 Lnet/minecraft/class_7298;field_38403:Lcom/google/common/collect/ImmutableList;
    • field_38400

      private final EntityPositionSource field_38400
      Mappings:
      Namespace Name Mixin selector
      official bX Lbkv;bX:Lcvy;
      intermediary field_38400 Lnet/minecraft/class_7298;field_38400:Lnet/minecraft/class_5709;
      named field_38400 Lnet/minecraft/class_7298;field_38400:Lnet/minecraft/world/event/EntityPositionSource;
    • field_38401

      private final EntityGameEventHandler field_38401
      Mappings:
      Namespace Name Mixin selector
      official bY Lbkv;bY:Lcvx;
      intermediary field_38401 Lnet/minecraft/class_7298;field_38401:Lnet/minecraft/class_5715;
      named field_38401 Lnet/minecraft/class_7298;field_38401:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
    • field_38402

      private final SimpleInventory field_38402
      Mappings:
      Namespace Name Mixin selector
      official bZ Lbkv;bZ:Laxm;
      intermediary field_38402 Lnet/minecraft/class_7298;field_38402:Lnet/minecraft/class_1277;
      named field_38402 Lnet/minecraft/class_7298;field_38402:Lnet/minecraft/inventory/SimpleInventory;
  • Constructor Details

    • class_7298

      public class_7298(EntityType<? extends class_7298> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Layl;<init>(Layp;Lcdi;)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

    • createBrainProfile

      protected Brain.Profile<class_7298> createBrainProfile()
      Overrides:
      createBrainProfile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official du Laza;du()Lazv$b;
      intermediary method_28306 Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;
      named createBrainProfile Lnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
    • deserializeBrain

      protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      deserializeBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laza;a(Lcom/mojang/serialization/Dynamic;)Lazv;
      intermediary method_18867 Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
      named deserializeBrain Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
    • getBrain

      public Brain<class_7298> getBrain()
      Overrides:
      getBrain in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official dt Laza;dt()Lazv;
      intermediary method_18868 Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
      named getBrain Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
    • method_42655

      public static DefaultAttributeContainer.Builder method_42655()
      Mappings:
      Namespace Name Mixin selector
      official n Lbkv;n()Lbaa$a;
      intermediary method_42655 Lnet/minecraft/class_7298;method_42655()Lnet/minecraft/class_5132$class_5133;
      named method_42655 Lnet/minecraft/class_7298;method_42655()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lazc;a(Lcdi;)Lbhs;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
    • travel

      public void travel(Vec3d movementInput)
      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.

      See vanilla examples of custom horse vehicle and flying entities.

      Overrides:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      official h Laza;h(Ldso;)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
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laza;b(Lazm;Laym;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • handleFallDamage

      public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource)
      Overrides:
      handleFallDamage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Layl;a(FFLaxu;)Z
      intermediary method_5747 Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
      named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
    • damage

      public boolean damage(DamageSource source, float amount)
      Overrides:
      damage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Layl;a(Laxu;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Layl;b(Lgk;Lcrv;)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
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState blockState, BlockPos landedPosition)
      Overrides:
      fall in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Layl;a(DZLcrv;Lgk;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lazc;r()Lahw;
      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 Laza;c(Laxu;)Lahw;
      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 x_ Laza;x_()Lahw;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ex Laza;ex()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official T Lazc;T()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official w_ Laza;w_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • canPickUpLoot

      public boolean canPickUpLoot()
      Overrides:
      canPickUpLoot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official fl Lazc;fl()Z
      intermediary method_5936 Lnet/minecraft/class_1308;method_5936()Z
      named canPickUpLoot Lnet/minecraft/entity/mob/MobEntity;canPickUpLoot()Z
    • method_42654

      private boolean method_42654()
      Mappings:
      Namespace Name Mixin selector
      official fE Lbkv;fE()Z
      intermediary method_42654 Lnet/minecraft/class_7298;method_42654()Z
      named method_42654 Lnet/minecraft/class_7298;method_42654()Z
    • interactMob

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lazc;b(Lbqt;Laxg;)Laxh;
      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;
    • getInventory

      public SimpleInventory getInventory()
      Specified by:
      getInventory in interface InventoryOwner
      Mappings:
      Namespace Name Mixin selector
      official q Lbkv;q()Laxm;
      intermediary method_42656 Lnet/minecraft/class_7298;method_42656()Lnet/minecraft/class_1277;
      named getInventory Lnet/minecraft/class_7298;getInventory()Lnet/minecraft/inventory/SimpleInventory;
    • method_42646

      protected Vec3i method_42646()
      Overrides:
      method_42646 in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official O Lazc;O()Lhj;
      intermediary method_42646 Lnet/minecraft/class_1308;method_42646()Lnet/minecraft/class_2382;
      named method_42646 Lnet/minecraft/entity/mob/MobEntity;method_42646()Lnet/minecraft/util/math/Vec3i;
    • canGather

      public boolean canGather(ItemStack stack)
      Overrides:
      canGather in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lazc;k(Lbxi;)Z
      intermediary method_20820 Lnet/minecraft/class_1308;method_20820(Lnet/minecraft/class_1799;)Z
      named canGather Lnet/minecraft/entity/mob/MobEntity;canGather(Lnet/minecraft/item/ItemStack;)Z
    • loot

      protected void loot(ItemEntity item)
      Overrides:
      loot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lazc;b(Lbnh;)V
      intermediary method_5949 Lnet/minecraft/class_1308;method_5949(Lnet/minecraft/class_1542;)V
      named loot Lnet/minecraft/entity/mob/MobEntity;loot(Lnet/minecraft/entity/ItemEntity;)V
    • sendAiDebugData

      protected void sendAiDebugData()
      Overrides:
      sendAiDebugData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official R Lazc;R()V
      intermediary method_18409 Lnet/minecraft/class_1308;method_18409()V
      named sendAiDebugData Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
    • hasWings

      public boolean hasWings()
      Overrides:
      hasWings in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aK Layl;aK()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      named hasWings Lnet/minecraft/entity/Entity;hasWings()Z
    • getPositionSource

      public PositionSource getPositionSource()
      Returns the position source of this listener.
      Specified by:
      getPositionSource in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official t Lcwc;t()Lcwd;
      intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
      named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
    • getRange

      public int getRange()
      Returns the range, in blocks, of the listener.
      Specified by:
      getRange in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official fC Lcwc;fC()I
      intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
      named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
    • updateEventHandler

      public void updateEventHandler(BiConsumer<EntityGameEventHandler,ServerWorld> biConsumer)
      Overrides:
      updateEventHandler in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Layl;a(Ljava/util/function/BiConsumer;)V
      intermediary method_42147 Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
      named updateEventHandler Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
    • listen

      public boolean listen(ServerWorld world, GameEvent event, Entity entity, Vec3d pos)
      Listens to an incoming game event.
      Specified by:
      listen in interface GameEventListener
      Returns:
      true if the game event has been accepted by this listener
      Mappings:
      Namespace Name Mixin selector
      official a Lcwc;a(Laeh;Lcwa;Layl;Ldso;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Z