Class ExperienceBottleEntity

All Implemented Interfaces:
FlyingItemEntity, CommandOutput, Nameable, EntityLike

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

    • ExperienceBottleEntity

      public ExperienceBottleEntity(EntityType<? extends ExperienceBottleEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdr;<init>(Lbdv;Lcjw;)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
    • ExperienceBottleEntity

      public ExperienceBottleEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxr;<init>(Lcjw;Lbeg;)V
      intermediary <init> Lnet/minecraft/class_1683;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)V
      named <init> Lnet/minecraft/entity/projectile/thrown/ExperienceBottleEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
    • ExperienceBottleEntity

      public ExperienceBottleEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxr;<init>(Lcjw;DDD)V
      intermediary <init> Lnet/minecraft/class_1683;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/projectile/thrown/ExperienceBottleEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • getDefaultItem

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

      protected float getGravity()
      Overrides:
      getGravity in class ThrownEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lbxo;k()F
      intermediary method_7490 Lnet/minecraft/class_1682;method_7490()F
      named getGravity Lnet/minecraft/entity/projectile/thrown/ThrownEntity;getGravity()F
    • onCollision

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