Class ThrownEntity

All Implemented Interfaces:
DataTracked, Ownable, ScoreHolder, CommandOutput, 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 cnx
  • 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> Lbsr;<init>(Lbsx;Ldcw;)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> Lcnx;<init>(Lbsx;DDDLdcw;)V
    • ThrownEntity

      protected ThrownEntity(EntityType<? extends ThrownEntity> type, LivingEntity owner, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/ThrownEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1682;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;)V
      official <init> Lcnx;<init>(Lbsx;Lbtn;Ldcw;)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 Lbsr;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 Lbsr;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 l Lbsr;l()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 aZ Lbsr;aZ()D