net.minecraft.world.entity.projectile

public abstract class ThrowableItemProjectile

extends ThrowableProjectile implements ItemSupplier

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity, ItemSupplier

cpy
net.minecraft.world.entity.projectile.ThrowableItemProjectile
net.minecraft.class_3857
net.minecraft.entity.projectile.thrown.ThrownItemEntity
net.minecraft.world.entity.projectile.EntityProjectileThrowable

Field summary

Modifier and TypeField
private static final EntityDataAccessor<ItemStack>
a
DATA_ITEM_STACK
field_17082
ITEM

Constructor summary

ModifierConstructor
public (EntityType<? extends ThrowableItemProjectile> arg0, Level arg1)
public (EntityType<? extends ThrowableItemProjectile> type, double x, double y, double z, Level world, ItemStack stack)
public (EntityType<? extends ThrowableItemProjectile> type, LivingEntity owner, Level world, ItemStack stack)

Method summary

Modifier and TypeMethod
public void
a(cwq arg0)
setItem(ItemStack arg0)
method_16940(class_1799 arg0)
setItem(ItemStack stack)
protected abstract Item
m()
getDefaultItem()
method_16942()
getDefaultItem()
public ItemStack
l()
getItem()
method_7495()
getStack()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)