net.minecraft.entity.projectile

public class ShulkerBulletEntity

extends ProjectileEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.projectile.ShulkerBullet
net.minecraft.class_1678
net.minecraft.entity.projectile.ShulkerBulletEntity

Field summary

Modifier and TypeField
private static final double
SPEED
field_30666
field_30666
private LazyEntityReference<Entity>
finalTarget
field_7626
target
private Direction
currentMoveDirection
field_7628
direction
private int
flightSteps
field_7627
stepCount
private double
targetDeltaX
field_7635
targetX
private double
targetDeltaY
field_7633
targetY
private double
targetDeltaZ
field_7625
targetZ

Constructor summary

ModifierConstructor
public (EntityType<? extends ShulkerBulletEntity> type, World level)
public (World world, LivingEntity owner, Entity target, Direction$Axis axis)

Method summary

Modifier and TypeMethod
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
private Direction
getMoveDirection()
method_35208()
getDirection()
private void
setMoveDirection(Direction direction)
method_7487(class_2350 arg0)
setDirection(Direction direction)
private void
selectNextMoveDirection(Direction$Axis avoidAxis, Entity target)
method_7486(class_2350$class_2351 arg0, class_1297 arg1)
changeTargetDirection(Direction$Axis axis, Entity target)
public void
checkDespawn()
method_5982()
checkDespawn()
protected double
getDefaultGravity()
method_7490()
getGravity()
public void
tick()
method_5773()
tick()
protected boolean
isAffectedByBlocks()
method_61410()
shouldTickBlockCollision()
protected boolean
canHitEntity(Entity entity)
method_26958(class_1297 arg0)
canHit(Entity arg0)
public boolean
isOnFire()
method_5809()
isOnFire()
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public float
getLightLevelDependentMagicValue()
method_5718()
getBrightnessAtEyes()
protected void
onHitEntity(EntityHitResult hitResult)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
onHitBlock(BlockHitResult hitResult)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
private void
destroy()
method_49723()
destroy()
protected void
onHit(HitResult hitResult)
method_7488(class_239 arg0)
onCollision(HitResult arg0)
public boolean
isPickable()
method_5863()
canHit()
public boolean
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)