public abstract class AbstractArrowEntity extends Entity implements IProjectile
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractArrowEntity.PickupStatus |
| Modifier and Type | Field and Description |
|---|---|
int |
arrowShake |
protected static DataParameter<java.util.Optional<java.util.UUID>> |
field_212362_a |
protected boolean |
inGround |
AbstractArrowEntity.PickupStatus |
pickupStatus |
java.util.UUID |
shootingEntity |
protected int |
timeInGround |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldfield_213139_a_| Modifier | Constructor and Description |
|---|---|
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> p_i48547_1_,
double p_i48547_2_,
double p_i48547_4_,
double p_i48547_6_,
World p_i48547_8_) |
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> p_i48548_1_,
LivingEntity p_i48548_2_,
World p_i48548_3_) |
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type,
World p_i48546_2_) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
arrowHit(LivingEntity living) |
boolean |
canBeAttackedWithItem() |
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
void |
func_203045_n(boolean p_203045_1_) |
boolean |
func_203047_q() |
void |
func_213865_o(boolean p_213865_1_) |
protected EntityRayTraceResult |
func_213866_a(Vec3d p_213866_1_,
Vec3d p_213866_2_) |
protected SoundEvent |
func_213867_k() |
protected void |
func_213868_a(EntityRayTraceResult p_213868_1_) |
void |
func_213872_b(byte p_213872_1_) |
boolean |
func_213873_r() |
byte |
func_213874_s() |
protected abstract ItemStack |
getArrowStack() |
double |
getDamage() |
protected float |
getEyeHeight(Pose p_213316_1_,
EntitySize p_213316_2_) |
protected SoundEvent |
getHitGroundSound() |
boolean |
getIsCritical() |
Entity |
getShooter() |
protected float |
getWaterDrag() |
boolean |
isInRangeToRenderDist(double distance) |
void |
onCollideWithPlayer(PlayerEntity entityIn) |
protected void |
onHit(RayTraceResult raytraceResultIn) |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerData() |
void |
setDamage(double damageIn) |
void |
setEnchantmentEffectsFromEntity(LivingEntity p_190547_1_,
float p_190547_2_) |
void |
setHitSound(SoundEvent p_213869_1_) |
void |
setIsCritical(boolean critical) |
void |
setKnockbackStrength(int knockbackStrengthIn) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setShooter(Entity p_212361_1_) |
void |
setVelocity(double x,
double y,
double z) |
void |
shoot(double x,
double y,
double z,
float velocity,
float inaccuracy) |
void |
shoot(Entity shooter,
float pitch,
float yaw,
float p_184547_4_,
float velocity,
float inaccuracy) |
void |
tick() |
protected void |
tryDespawn() |
void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, attackEntityFrom, awardKillScore, baseTick, canBeCollidedWith, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fall, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213314_bj, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapability, getCapabilityprotected static final DataParameter<java.util.Optional<java.util.UUID>> field_212362_a
protected boolean inGround
protected int timeInGround
public AbstractArrowEntity.PickupStatus pickupStatus
public int arrowShake
public java.util.UUID shootingEntity
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type, World p_i48546_2_)
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> p_i48547_1_, double p_i48547_2_, double p_i48547_4_, double p_i48547_6_, World p_i48547_8_)
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> p_i48548_1_, LivingEntity p_i48548_2_, World p_i48548_3_)
public void setHitSound(SoundEvent p_213869_1_)
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist in class Entityprotected void registerData()
registerData in class Entitypublic void shoot(Entity shooter, float pitch, float yaw, float p_184547_4_, float velocity, float inaccuracy)
public void shoot(double x,
double y,
double z,
float velocity,
float inaccuracy)
shoot in interface IProjectilepublic void setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
setPositionAndRotationDirect in class Entitypublic void setVelocity(double x,
double y,
double z)
setVelocity in class Entityprotected void tryDespawn()
protected void onHit(RayTraceResult raytraceResultIn)
protected void func_213868_a(EntityRayTraceResult p_213868_1_)
protected SoundEvent func_213867_k()
protected final SoundEvent getHitGroundSound()
protected void arrowHit(LivingEntity living)
@Nullable protected EntityRayTraceResult func_213866_a(Vec3d p_213866_1_, Vec3d p_213866_2_)
public void writeAdditional(CompoundNBT compound)
writeAdditional in class Entitypublic void readAdditional(CompoundNBT compound)
readAdditional in class Entitypublic void setShooter(@Nullable
Entity p_212361_1_)
@Nullable public Entity getShooter()
public void onCollideWithPlayer(PlayerEntity entityIn)
onCollideWithPlayer in class Entityprotected abstract ItemStack getArrowStack()
protected boolean canTriggerWalking()
canTriggerWalking in class Entitypublic void setDamage(double damageIn)
public double getDamage()
public void setKnockbackStrength(int knockbackStrengthIn)
public boolean canBeAttackedWithItem()
canBeAttackedWithItem in class Entityprotected float getEyeHeight(Pose p_213316_1_, EntitySize p_213316_2_)
getEyeHeight in class Entitypublic void setIsCritical(boolean critical)
public void func_213872_b(byte p_213872_1_)
public boolean getIsCritical()
public boolean func_213873_r()
public byte func_213874_s()
public void setEnchantmentEffectsFromEntity(LivingEntity p_190547_1_, float p_190547_2_)
protected float getWaterDrag()
public void func_203045_n(boolean p_203045_1_)
public boolean func_203047_q()
public void func_213865_o(boolean p_213865_1_)
public IPacket<?> createSpawnPacket()
createSpawnPacket in class Entity