Package net.minecraft

Class class_8150

All Implemented Interfaces:
class_8149, class_8152, CommandOutput, Nameable, EntityLike

public class class_8150 extends Entity implements class_8149, class_8152
Mappings:
Namespace Name
official bfr
intermediary net/minecraft/class_8150
named net/minecraft/class_8150
  • Field Details

    • field_42624

      private static final Logger field_42624
      Mappings:
      Namespace Name Mixin selector
      official b Lbfr;b:Lorg/slf4j/Logger;
      intermediary field_42624 Lnet/minecraft/class_8150;field_42624:Lorg/slf4j/Logger;
      named field_42624 Lnet/minecraft/class_8150;field_42624:Lorg/slf4j/Logger;
    • field_42625

      private static final TrackedData<Float> field_42625
      Mappings:
      Namespace Name Mixin selector
      official c Lbfr;c:Laci;
      intermediary field_42625 Lnet/minecraft/class_8150;field_42625:Lnet/minecraft/class_2940;
      named field_42625 Lnet/minecraft/class_8150;field_42625:Lnet/minecraft/entity/data/TrackedData;
    • field_42626

      private static final TrackedData<Float> field_42626
      Mappings:
      Namespace Name Mixin selector
      official d Lbfr;d:Laci;
      intermediary field_42626 Lnet/minecraft/class_8150;field_42626:Lnet/minecraft/class_2940;
      named field_42626 Lnet/minecraft/class_8150;field_42626:Lnet/minecraft/entity/data/TrackedData;
    • field_42627

      private static final TrackedData<Boolean> field_42627
      Mappings:
      Namespace Name Mixin selector
      official e Lbfr;e:Laci;
      intermediary field_42627 Lnet/minecraft/class_8150;field_42627:Lnet/minecraft/class_2940;
      named field_42627 Lnet/minecraft/class_8150;field_42627:Lnet/minecraft/entity/data/TrackedData;
    • field_42628

      private static final String field_42628
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbfr;f:Ljava/lang/String;
      intermediary field_42628 Lnet/minecraft/class_8150;field_42628:Ljava/lang/String;
      named field_42628 Lnet/minecraft/class_8150;field_42628:Ljava/lang/String;
    • field_42629

      private static final String field_42629
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbfr;g:Ljava/lang/String;
      intermediary field_42629 Lnet/minecraft/class_8150;field_42629:Ljava/lang/String;
      named field_42629 Lnet/minecraft/class_8150;field_42629:Ljava/lang/String;
    • field_42630

      private static final String field_42630
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lbfr;h:Ljava/lang/String;
      intermediary field_42630 Lnet/minecraft/class_8150;field_42630:Ljava/lang/String;
      named field_42630 Lnet/minecraft/class_8150;field_42630:Ljava/lang/String;
    • field_42631

      private static final String field_42631
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lbfr;i:Ljava/lang/String;
      intermediary field_42631 Lnet/minecraft/class_8150;field_42631:Ljava/lang/String;
      named field_42631 Lnet/minecraft/class_8150;field_42631:Ljava/lang/String;
    • field_42632

      private static final String field_42632
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbfr;j:Ljava/lang/String;
      intermediary field_42632 Lnet/minecraft/class_8150;field_42632:Ljava/lang/String;
      named field_42632 Lnet/minecraft/class_8150;field_42632:Ljava/lang/String;
    • field_42633

      Mappings:
      Namespace Name Mixin selector
      official k Lbfr;k:Lbfr$a;
      intermediary field_42633 Lnet/minecraft/class_8150;field_42633:Lnet/minecraft/class_8150$class_8151;
      named field_42633 Lnet/minecraft/class_8150;field_42633:Lnet/minecraft/class_8150$class_8151;
    • field_42634

      Mappings:
      Namespace Name Mixin selector
      official l Lbfr;l:Lbfr$a;
      intermediary field_42634 Lnet/minecraft/class_8150;field_42634:Lnet/minecraft/class_8150$class_8151;
      named field_42634 Lnet/minecraft/class_8150;field_42634:Lnet/minecraft/class_8150$class_8151;
  • Constructor Details

    • class_8150

      public class_8150(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfg;<init>(Lbfk;Lcmh;)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

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfg;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Specified by:
      readCustomDataFromNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Lrc;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Specified by:
      writeCustomDataToNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfg;b(Lrc;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Laci;)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
    • method_49108

      public boolean method_49108()
      Overrides:
      method_49108 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bm Lbfg;bm()Z
      intermediary method_49108 Lnet/minecraft/class_1297;method_49108()Z
      named method_49108 Lnet/minecraft/entity/Entity;method_49108()Z
    • canHit

      public boolean canHit()
      Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.
      Overrides:
      canHit in class Entity
      Returns:
      whether the entity can be hit with a projectile or be targeted by the player crosshair
      Mappings:
      Namespace Name Mixin selector
      official bn Lbfg;bn()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
    • getPistonBehavior

      public PistonBehavior getPistonBehavior()
      Returns the behavior of the piston for this entity.

      This is PistonBehavior.NORMAL by default. AreaEffectCloudEntity, MarkerEntity, and marker ArmorStandEntity return PistonBehavior.IGNORE, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated like PistonBehavior.NORMAL.

      Overrides:
      getPistonBehavior in class Entity
      Returns:
      the behavior of the piston for this entity
      Mappings:
      Namespace Name Mixin selector
      official C_ Lbfg;C_()Ldwm;
      intermediary method_5657 Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
      named getPistonBehavior Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
    • handleAttack

      public boolean handleAttack(Entity attacker)
      Handles a player attacking the entity. This is called before Entity.damage(net.minecraft.entity.damage.DamageSource, float) and can be used to restrict players from attacking the entity by returning true.
      Overrides:
      handleAttack in class Entity
      Returns:
      whether to stop handling the attack
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Lbfg;r(Lbfg;)Z
      intermediary method_5698 Lnet/minecraft/class_1297;method_5698(Lnet/minecraft/class_1297;)Z
      named handleAttack Lnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Z
    • interact

      public ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Overrides:
      interact in class Entity
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Lbyl;Lbdw;)Lbdx;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbfg;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • method_49107

      @Nullable public @Nullable LivingEntity method_49107()
      Specified by:
      method_49107 in interface class_8149
      Mappings:
      Namespace Name Mixin selector
      official L_ Lbfe;L_()Lbfw;
      intermediary method_49107 Lnet/minecraft/class_8149;method_49107()Lnet/minecraft/class_1309;
      named method_49107 Lnet/minecraft/class_8149;method_49107()Lnet/minecraft/entity/LivingEntity;
    • getTarget

      @Nullable public @Nullable LivingEntity getTarget()
      Specified by:
      getTarget in interface class_8152
      Mappings:
      Namespace Name Mixin selector
      official P_ Lbgt;P_()Lbfw;
      intermediary method_5968 Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
      named getTarget Lnet/minecraft/class_8152;getTarget()Lnet/minecraft/entity/LivingEntity;
    • method_49109

      private void method_49109(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfr;a(F)V
      intermediary method_49109 Lnet/minecraft/class_8150;method_49109(F)V
      named method_49109 Lnet/minecraft/class_8150;method_49109(F)V
    • method_49116

      private float method_49116()
      Mappings:
      Namespace Name Mixin selector
      official j Lbfr;j()F
      intermediary method_49116 Lnet/minecraft/class_8150;method_49116()F
      named method_49116 Lnet/minecraft/class_8150;method_49116()F
    • method_49113

      private void method_49113(float float2)
      Mappings:
      Namespace Name Mixin selector
      official b Lbfr;b(F)V
      intermediary method_49113 Lnet/minecraft/class_8150;method_49113(F)V
      named method_49113 Lnet/minecraft/class_8150;method_49113(F)V
    • method_49117

      private float method_49117()
      Mappings:
      Namespace Name Mixin selector
      official k Lbfr;k()F
      intermediary method_49117 Lnet/minecraft/class_8150;method_49117()F
      named method_49117 Lnet/minecraft/class_8150;method_49117()F
    • method_49112

      private void method_49112(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfr;a(Z)V
      intermediary method_49112 Lnet/minecraft/class_8150;method_49112(Z)V
      named method_49112 Lnet/minecraft/class_8150;method_49112(Z)V
    • method_49118

      private boolean method_49118()
      Mappings:
      Namespace Name Mixin selector
      official o Lbfr;o()Z
      intermediary method_49118 Lnet/minecraft/class_8150;method_49118()Z
      named method_49118 Lnet/minecraft/class_8150;method_49118()Z
    • method_49119

      private EntityDimensions method_49119()
      Mappings:
      Namespace Name Mixin selector
      official p Lbfr;p()Lbfh;
      intermediary method_49119 Lnet/minecraft/class_8150;method_49119()Lnet/minecraft/class_4048;
      named method_49119 Lnet/minecraft/class_8150;method_49119()Lnet/minecraft/entity/EntityDimensions;
    • getDimensions

      public EntityDimensions getDimensions(EntityPose pose)
      Returns the dimensions of the entity with the given pose.
      Overrides:
      getDimensions in class Entity
      Returns:
      the dimensions of the entity with the given pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Lbgi;)Lbfh;
      intermediary method_18377 Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      named getDimensions Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
    • calculateBoundingBox

      protected Box calculateBoundingBox()
      Overrides:
      calculateBoundingBox in class Entity
      Mappings:
      Namespace Name Mixin selector
      official an Lbfg;an()Lecw;
      intermediary method_33332 Lnet/minecraft/class_1297;method_33332()Lnet/minecraft/class_238;
      named calculateBoundingBox Lnet/minecraft/entity/Entity;calculateBoundingBox()Lnet/minecraft/util/math/Box;