Class ExperienceBottleEntity

All Implemented Interfaces:
DataTracked, FlyingItemEntity, Ownable, ScoreHolder, Nameable, EntityLike

public class ExperienceBottleEntity extends ThrownItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/thrown/ExperienceBottleEntity
intermediary net/minecraft/class_1683
official cra
  • Constructor Details

    • ExperienceBottleEntity

      public ExperienceBottleEntity(EntityType<? extends ExperienceBottleEntity> 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
    • ExperienceBottleEntity

      public ExperienceBottleEntity(World world, LivingEntity owner, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/ExperienceBottleEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_1683;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
      official <init> Lcra;<init>(Ldhh;Lbwf;Lcxo;)V
    • ExperienceBottleEntity

      public ExperienceBottleEntity(World world, double x, double y, double z, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/ExperienceBottleEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_1683;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
      official <init> Lcra;<init>(Ldhh;DDDLcxo;)V
  • Method Details

    • getDefaultItem

      protected Item getDefaultItem()
      Specified by:
      getDefaultItem in class ThrownItemEntity
      Mappings:
      Namespace Name Mixin selector
      named getDefaultItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getDefaultItem()Lnet/minecraft/item/Item;
      intermediary method_16942 Lnet/minecraft/class_3857;method_16942()Lnet/minecraft/class_1792;
      official m Lcqw;m()Lcxk;
    • getGravity

      protected double getGravity()
      Overrides:
      getGravity in class ThrownEntity
      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
    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onCollision Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
      intermediary method_7488 Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
      official a Lcqp;a(Lfbv;)V