public abstract class AbstractArrowEntity extends Entity implements IProjectile
Modifier and Type | Class and Description |
---|---|
static class |
AbstractArrowEntity.PickupStatus |
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
int |
arrowShake |
private static DataParameter<java.lang.Byte> |
CRITICAL |
private double |
damage |
protected static DataParameter<java.util.Optional<java.util.UUID>> |
field_212362_a |
private java.util.List<Entity> |
hitEntities |
private SoundEvent |
hitSound |
private BlockState |
inBlockState |
protected boolean |
inGround |
private int |
knockbackStrength |
AbstractArrowEntity.PickupStatus |
pickupStatus |
private static DataParameter<java.lang.Byte> |
PIERCE_LEVEL |
private it.unimi.dsi.fastutil.ints.IntOpenHashSet |
piercedEntities |
java.util.UUID |
shootingEntity |
private int |
ticksInAir |
private int |
ticksInGround |
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, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
Modifier | Constructor and Description |
---|---|
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type,
double x,
double y,
double z,
World worldIn) |
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type,
LivingEntity shooter,
World worldIn) |
protected |
AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type,
World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
arrowHit(LivingEntity living) |
boolean |
canBeAttackedWithItem() |
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
private void |
func_213870_w() |
protected void |
func_225516_i_() |
protected abstract ItemStack |
getArrowStack() |
double |
getDamage() |
protected float |
getEyeHeight(Pose poseIn,
EntitySize sizeIn) |
protected SoundEvent |
getHitEntitySound() |
protected SoundEvent |
getHitGroundSound() |
boolean |
getIsCritical() |
boolean |
getNoClip() |
byte |
getPierceLevel() |
Entity |
getShooter() |
boolean |
getShotFromCrossbow() |
protected float |
getWaterDrag() |
boolean |
isInRangeToRenderDist(double distance) |
void |
onCollideWithPlayer(PlayerEntity entityIn) |
protected void |
onEntityHit(EntityRayTraceResult p_213868_1_) |
protected void |
onHit(RayTraceResult raytraceResultIn) |
protected EntityRayTraceResult |
rayTraceEntities(Vec3d startVec,
Vec3d endVec) |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerData() |
private void |
setArrowFlag(int p_203049_1_,
boolean p_203049_2_) |
void |
setDamage(double damageIn) |
void |
setEnchantmentEffectsFromEntity(LivingEntity p_190547_1_,
float p_190547_2_) |
void |
setHitSound(SoundEvent soundIn) |
void |
setIsCritical(boolean critical) |
void |
setKnockbackStrength(int knockbackStrengthIn) |
void |
setNoClip(boolean noClipIn) |
void |
setPierceLevel(byte level) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setShooter(Entity entityIn) |
void |
setShotFromCrossbow(boolean fromCrossbow) |
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() |
void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, attackEntityFrom, awardKillScore, baseTick, calculateUpVector, canBeCollidedWith, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getSelfAndPassengers, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, 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, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, maybeBackOffFromEdge, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, positionRider, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability, getCapability
private static final DataParameter<java.lang.Byte> CRITICAL
protected static final DataParameter<java.util.Optional<java.util.UUID>> field_212362_a
private static final DataParameter<java.lang.Byte> PIERCE_LEVEL
@Nullable private BlockState inBlockState
protected boolean inGround
protected int timeInGround
public AbstractArrowEntity.PickupStatus pickupStatus
public int arrowShake
public java.util.UUID shootingEntity
private int ticksInGround
private int ticksInAir
private double damage
private int knockbackStrength
private SoundEvent hitSound
private it.unimi.dsi.fastutil.ints.IntOpenHashSet piercedEntities
private java.util.List<Entity> hitEntities
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type, World worldIn)
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type, double x, double y, double z, World worldIn)
protected AbstractArrowEntity(EntityType<? extends AbstractArrowEntity> type, LivingEntity shooter, World worldIn)
public void setHitSound(SoundEvent soundIn)
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
protected void registerData()
registerData
in class Entity
public 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 IProjectile
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
in class Entity
public void setVelocity(double x, double y, double z)
setVelocity
in class Entity
protected void func_225516_i_()
protected void onHit(RayTraceResult raytraceResultIn)
private void func_213870_w()
protected void onEntityHit(EntityRayTraceResult p_213868_1_)
protected SoundEvent getHitEntitySound()
protected final SoundEvent getHitGroundSound()
protected void arrowHit(LivingEntity living)
@Nullable protected EntityRayTraceResult rayTraceEntities(Vec3d startVec, Vec3d endVec)
public void writeAdditional(CompoundNBT compound)
writeAdditional
in class Entity
public void readAdditional(CompoundNBT compound)
readAdditional
in class Entity
public void setShooter(@Nullable Entity entityIn)
@Nullable public Entity getShooter()
public void onCollideWithPlayer(PlayerEntity entityIn)
onCollideWithPlayer
in class Entity
protected abstract ItemStack getArrowStack()
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
public void setDamage(double damageIn)
public double getDamage()
public void setKnockbackStrength(int knockbackStrengthIn)
public boolean canBeAttackedWithItem()
canBeAttackedWithItem
in class Entity
protected float getEyeHeight(Pose poseIn, EntitySize sizeIn)
getEyeHeight
in class Entity
public void setIsCritical(boolean critical)
public void setPierceLevel(byte level)
private void setArrowFlag(int p_203049_1_, boolean p_203049_2_)
public boolean getIsCritical()
public boolean getShotFromCrossbow()
public byte getPierceLevel()
public void setEnchantmentEffectsFromEntity(LivingEntity p_190547_1_, float p_190547_2_)
protected float getWaterDrag()
public void setNoClip(boolean noClipIn)
public boolean getNoClip()
public void setShotFromCrossbow(boolean fromCrossbow)
public IPacket<?> createSpawnPacket()
createSpawnPacket
in class Entity