Class TransientCreakingEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Targeter, ScoreHolder, Nameable, EntityLike

public class TransientCreakingEntity extends CreakingEntity
Mappings:
Namespace Name
named net/minecraft/entity/mob/TransientCreakingEntity
intermediary net/minecraft/class_10281
official coc
  • Field Details

    • field_54587

      public static final int field_54587
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54587 Lnet/minecraft/entity/mob/TransientCreakingEntity;field_54587:I
      intermediary field_54587 Lnet/minecraft/class_10281;field_54587:I
      official cb Lcoc;cb:I
    • invulnerableAnimationTimer

      private int invulnerableAnimationTimer
      Mappings:
      Namespace Name Mixin selector
      named invulnerableAnimationTimer Lnet/minecraft/entity/mob/TransientCreakingEntity;invulnerableAnimationTimer:I
      intermediary field_54588 Lnet/minecraft/class_10281;field_54588:I
      official cc Lcoc;cc:I
    • heartPos

      Mappings:
      Namespace Name Mixin selector
      named heartPos Lnet/minecraft/entity/mob/TransientCreakingEntity;heartPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_54589 Lnet/minecraft/class_10281;field_54589:Lnet/minecraft/class_2338;
      official cd Lcoc;cd:Ljh;
  • Constructor Details

    • TransientCreakingEntity

      public TransientCreakingEntity(EntityType<? extends CreakingEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • setHeartPos

      public void setHeartPos(BlockPos heartPos)
      Mappings:
      Namespace Name Mixin selector
      named setHeartPos Lnet/minecraft/entity/mob/TransientCreakingEntity;setHeartPos(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_64643 Lnet/minecraft/class_10281;method_64643(Lnet/minecraft/class_2338;)V
      official h Lcoc;h(Ljh;)V
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbvj;a(Lash;Lbtz;F)Z
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class CreakingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official d_ Lbwf;d_()V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class CreakingEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class CreakingEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbvj;b(B)V
    • tickInvulnerableAnimation

      private void tickInvulnerableAnimation()
      Mappings:
      Namespace Name Mixin selector
      named tickInvulnerableAnimation Lnet/minecraft/entity/mob/TransientCreakingEntity;tickInvulnerableAnimation()V
      intermediary method_64641 Lnet/minecraft/class_10281;method_64641()V
      official go Lcoc;go()V
    • damageFromHeart

      public void damageFromHeart(@Nullable @Nullable DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named damageFromHeart Lnet/minecraft/entity/mob/TransientCreakingEntity;damageFromHeart(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_64642 Lnet/minecraft/class_10281;method_64642(Lnet/minecraft/class_1282;)V
      official h Lcoc;h(Lbtz;)V
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of Entity.canStartRiding(net.minecraft.entity.Entity).

      Overrides:
      canAddPassenger in class Entity
      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      official r Lbvj;r(Lbvj;)Z
    • couldAcceptPassenger

      protected boolean couldAcceptPassenger()
      Returns true if this entity supports passengers in general.
      Overrides:
      couldAcceptPassenger in class Entity
      Returns:
      true if this entity supports passengers in general
      Mappings:
      Namespace Name Mixin selector
      named couldAcceptPassenger Lnet/minecraft/entity/Entity;couldAcceptPassenger()Z
      intermediary method_48921 Lnet/minecraft/class_1297;method_48921()Z
      official bR Lbvj;bR()Z
    • addPassenger

      protected void addPassenger(Entity passenger)
      Adds passenger as a passenger. This should not be called normally; call Entity.startRiding(Entity) instead. (Note that the entity to pass and the entity to call are swapped in this case; entity.startRiding(vehicle) is the equivalent of vehicle.addPassenger(entity).)
      Overrides:
      addPassenger in class Entity
      Throws:
      IllegalStateException - when the method is called directly
      Mappings:
      Namespace Name Mixin selector
      named addPassenger Lnet/minecraft/entity/Entity;addPassenger(Lnet/minecraft/entity/Entity;)V
      intermediary method_5627 Lnet/minecraft/class_1297;method_5627(Lnet/minecraft/class_1297;)V
      official p Lbvj;p(Lbvj;)V
    • canUsePortals

      public boolean canUsePortals(boolean allowVehicles)
      Returns whether the entity can use nether portals and end portals.

      EnderDragonEntity, WitherEntity, and FishingBobberEntity cannot use portals.

      Overrides:
      canUsePortals in class LivingEntity
      Returns:
      whether the entity can use nether portals and end portals
      Mappings:
      Namespace Name Mixin selector
      named canUsePortals Lnet/minecraft/entity/Entity;canUsePortals(Z)Z
      intermediary method_5822 Lnet/minecraft/class_1297;method_5822(Z)Z
      official o Lbvj;o(Z)Z
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lbwh;b(Ldhh;)Lcfr;