Class ThrownEntity

All Implemented Interfaces:
DataTracked, Ownable, ScoreHolder, Nameable, EntityLike
Direct Known Subclasses:
ThrownItemEntity

public abstract class ThrownEntity extends ProjectileEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/thrown/ThrownEntity
intermediary net/minecraft/class_1682
official cqx
  • Field Details

    • field_52510

      private static final float field_52510
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52510 Lnet/minecraft/entity/projectile/thrown/ThrownEntity;field_52510:F
      intermediary field_52510 Lnet/minecraft/class_1682;field_52510:F
      official a Lcqx;a:F
  • Constructor Details

    • ThrownEntity

      protected ThrownEntity(EntityType<? extends ThrownEntity> 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
    • ThrownEntity

      protected ThrownEntity(EntityType<? extends ThrownEntity> type, double x, double y, double z, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/ThrownEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1682;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;)V
      official <init> Lcqx;<init>(Lbvq;DDDLdhh;)V
  • Method Details

    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      official a Lbvj;a(D)Z
    • 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 Entity
      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
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ProjectileEntity
      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 Entity.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
    • applyDrag

      private void applyDrag()
      Mappings:
      Namespace Name Mixin selector
      named applyDrag Lnet/minecraft/entity/projectile/thrown/ThrownEntity;applyDrag()V
      intermediary method_63673 Lnet/minecraft/class_1682;method_63673()V
      official m Lcqx;m()V
    • tickInitialBubbleColumnCollision

      private void tickInitialBubbleColumnCollision()
      Mappings:
      Namespace Name Mixin selector
      named tickInitialBubbleColumnCollision Lnet/minecraft/entity/projectile/thrown/ThrownEntity;tickInitialBubbleColumnCollision()V
      intermediary method_65041 Lnet/minecraft/class_1682;method_65041()V
      official s Lcqx;s()V
    • getGravity

      protected double getGravity()
      Overrides:
      getGravity in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getGravity Lnet/minecraft/entity/Entity;getGravity()D
      intermediary method_7490 Lnet/minecraft/class_1297;method_7490()D
      official bd Lbvj;bd()D