Class SnowballEntity

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

public class SnowballEntity extends ThrownItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/thrown/SnowballEntity
intermediary net/minecraft/class_1680
official cnw
  • Constructor Details

    • SnowballEntity

      public SnowballEntity(EntityType<? extends SnowballEntity> 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> Lbsw;<init>(Lbtc;Ldca;)V
    • SnowballEntity

      public SnowballEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/SnowballEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
      intermediary <init> Lnet/minecraft/class_1680;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)V
      official <init> Lcnw;<init>(Ldca;Lbtr;)V
    • SnowballEntity

      public SnowballEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/SnowballEntity;<init>(Lnet/minecraft/world/World;DDD)V
      intermediary <init> Lnet/minecraft/class_1680;<init>(Lnet/minecraft/class_1937;DDD)V
      official <init> Lcnw;<init>(Ldca;DDD)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 u Lcny;u()Lcum;
    • getParticleParameters

      private ParticleEffect getParticleParameters()
      Mappings:
      Namespace Name Mixin selector
      named getParticleParameters Lnet/minecraft/entity/projectile/thrown/SnowballEntity;getParticleParameters()Lnet/minecraft/particle/ParticleEffect;
      intermediary method_16939 Lnet/minecraft/class_1680;method_16939()Lnet/minecraft/class_2394;
      official v Lcnw;v()Llg;
    • 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 Entity
      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 Lbsw;b(B)V
    • onEntityHit

      protected void onEntityHit(EntityHitResult entityHitResult)
      Overrides:
      onEntityHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onEntityHit Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
      intermediary method_7454 Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
      official a Lcnr;a(Levq;)V
    • 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 Lcnr;a(Levr;)V