public abstract class AbstractArrowEntity extends Entity implements IProjectile
修飾子とタイプ | クラスと説明 |
---|---|
static class |
AbstractArrowEntity.PickupStatus |
Entity.IMoveCallback
修飾子とタイプ | フィールドと説明 |
---|---|
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, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
修飾子 | コンストラクタと説明 |
---|---|
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) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
arrowHit(LivingEntity living) |
boolean |
canBeAttackedWithItem()
Returns true if it's possible to attack this entity with an item.
|
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
protected void |
func_225516_i_() |
protected abstract ItemStack |
getArrowStack() |
double |
getDamage() |
protected float |
getEyeHeight(Pose poseIn,
EntitySize sizeIn) |
protected SoundEvent |
getHitEntitySound()
The sound made when an entity is hit by this projectile
|
protected SoundEvent |
getHitGroundSound() |
boolean |
getIsCritical()
Whether the arrow has a stream of critical hit particles flying behind it.
|
boolean |
getNoClip()
Whether the arrow can noClip
|
byte |
getPierceLevel() |
Entity |
getShooter() |
boolean |
getShotFromCrossbow()
Whether the arrow was shot from a crossbow.
|
protected float |
getWaterDrag() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render.
|
void |
onCollideWithPlayer(PlayerEntity entityIn)
Called by a player entity when they collide with an entity
|
protected void |
onEntityHit(EntityRayTraceResult p_213868_1_)
Called when the arrow hits an entity
|
protected void |
onHit(RayTraceResult raytraceResultIn)
Called when the arrow hits a block or an entity
|
protected EntityRayTraceResult |
rayTraceEntities(Vec3d startVec,
Vec3d endVec)
Gets the EntityRayTraceResult representing the entity hit
|
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerData() |
void |
setDamage(double damageIn) |
void |
setEnchantmentEffectsFromEntity(LivingEntity p_190547_1_,
float p_190547_2_) |
void |
setHitSound(SoundEvent soundIn) |
void |
setIsCritical(boolean critical)
Whether the arrow has a stream of critical hit particles flying behind it.
|
void |
setKnockbackStrength(int knockbackStrengthIn)
Sets the amount of knockback the arrow applies when it hits a mob.
|
void |
setNoClip(boolean noClipIn)
Sets if this arrow can noClip
|
void |
setPierceLevel(byte level) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
Sets a target for the client to interpolate towards over the next few ticks
|
void |
setShooter(Entity entityIn) |
void |
setShotFromCrossbow(boolean fromCrossbow)
Sets data about if this arrow entity was shot from a crossbow
|
void |
setVelocity(double x,
double y,
double z)
Updates the entity motion clientside, called by packets from the server
|
void |
shoot(double x,
double y,
double z,
float velocity,
float inaccuracy)
Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.
|
void |
shoot(Entity shooter,
float pitch,
float yaw,
float p_184547_4_,
float velocity,
float inaccuracy) |
void |
tick()
Called to update the entity's position/logic.
|
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, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, 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, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, 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, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, 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
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability, getCapability
protected 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 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
クラス内 Entity
protected void registerData()
registerData
クラス内 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
インタフェース内 IProjectile
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
クラス内 Entity
public void setVelocity(double x, double y, double z)
setVelocity
クラス内 Entity
protected void func_225516_i_()
protected void onHit(RayTraceResult raytraceResultIn)
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
クラス内 Entity
public void readAdditional(CompoundNBT compound)
readAdditional
クラス内 Entity
public void setShooter(@Nullable Entity entityIn)
@Nullable public Entity getShooter()
public void onCollideWithPlayer(PlayerEntity entityIn)
onCollideWithPlayer
クラス内 Entity
protected abstract ItemStack getArrowStack()
protected boolean canTriggerWalking()
canTriggerWalking
クラス内 Entity
public void setDamage(double damageIn)
public double getDamage()
public void setKnockbackStrength(int knockbackStrengthIn)
public boolean canBeAttackedWithItem()
canBeAttackedWithItem
クラス内 Entity
protected float getEyeHeight(Pose poseIn, EntitySize sizeIn)
getEyeHeight
クラス内 Entity
public void setIsCritical(boolean critical)
public void setPierceLevel(byte level)
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
クラス内 Entity