net.minecraft.entity.projectile.thrown

public class EggEntity

extends ThrownItemEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Ownable, FlyingItemEntity

net.minecraft.world.entity.projectile.throwableitemprojectile.ThrownEgg
net.minecraft.class_1681
net.minecraft.entity.projectile.thrown.EggEntity

Field summary

Modifier and TypeField
private static final EntityDimensions
ZERO_SIZED_DIMENSIONS
field_51894
EMPTY_DIMENSIONS

Constructor summary

ModifierConstructor
public (EntityType<? extends EggEntity> type, World level)
public (World world, LivingEntity owner, ItemStack stack)
public (World world, double x, double y, double z, ItemStack stack)

Method summary

Modifier and TypeMethod
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
onHitEntity(EntityHitResult hitResult)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
onHit(HitResult hitResult)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
protected Item
getDefaultItem()
method_16942()
getDefaultItem()