Uses of Class
net.minecraft.entity.projectile.ProjectileEntity
Package
Description
-
Uses of ProjectileEntity in net.minecraft.block
Modifier and TypeMethodDescriptionvoid
AbstractBlock.AbstractBlockState.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) protected void
AbstractBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
AbstractCandleBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
AmethystBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
BellBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
BigDripleafBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
CampfireBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
ChorusFlowerBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
DecoratedPotBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
PointedDripstoneBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
TargetBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.protected void
TntBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block. -
Uses of ProjectileEntity in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.onProjectileSpawned
(ServerWorld world, ItemStack weaponStack, ProjectileEntity projectile, Consumer<Item> onBreak) -
Uses of ProjectileEntity in net.minecraft.entity
Modifier and TypeMethodDescriptionvoid
ProjectileDeflection.deflect
(ProjectileEntity projectile, @Nullable Entity hitEntity, Random random) Entity.getProjectileDeflection
(ProjectileEntity projectile) -
Uses of ProjectileEntity in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionBreezeEntity.getProjectileDeflection
(ProjectileEntity projectile) -
Uses of ProjectileEntity in net.minecraft.entity.projectile
Modifier and TypeInterfaceDescriptionstatic interface
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionstatic <T extends ProjectileEntity>
TProjectileEntity.spawn
(T projectile, ServerWorld world, ItemStack projectileStack) static <T extends ProjectileEntity>
TProjectileEntity.spawn
(T projectile, ServerWorld world, ItemStack projectileStack, Consumer<T> beforeSpawn) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, double velocityX, double velocityY, double velocityZ, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, float roll, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity
(T projectile, ServerWorld world, ItemStack projectileStack, double velocityX, double velocityY, double velocityZ, float power, float divergence) ModifierConstructorDescription(package private)
ProjectileEntity
(EntityType<? extends ProjectileEntity> type, World world) -
Uses of ProjectileEntity in net.minecraft.entity.projectile.thrown
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
-
Uses of ProjectileEntity in net.minecraft.item
Modifier and TypeMethodDescriptionprotected ProjectileEntity
CrossbowItem.createArrowEntity
(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) protected ProjectileEntity
RangedWeaponItem.createArrowEntity
(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) ArrowItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) EggItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ExperienceBottleItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) FireChargeItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) FireworkRocketItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ProjectileItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) SnowballItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) SpectralArrowItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ThrowablePotionItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) TridentItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) WindChargeItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) Modifier and TypeMethodDescriptionvoid
FireChargeItem.initializeProjectile
(ProjectileEntity entity, double x, double y, double z, float power, float uncertainty) default void
ProjectileItem.initializeProjectile
(ProjectileEntity entity, double x, double y, double z, float power, float uncertainty) void
WindChargeItem.initializeProjectile
(ProjectileEntity entity, double x, double y, double z, float power, float uncertainty) protected void
BowItem.shoot
(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected void
CrossbowItem.shoot
(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected abstract void
RangedWeaponItem.shoot
(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target)