public class ShulkerBulletEntity extends ProjectileEntity
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private Direction |
currentMoveDirection |
private Entity |
finalTarget |
private int |
flightSteps |
private double |
targetDeltaX |
private double |
targetDeltaY |
private double |
targetDeltaZ |
private java.util.UUID |
targetId |
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
NULL
Constructor and Description |
---|
ShulkerBulletEntity(EntityType<? extends ShulkerBulletEntity> p_i50161_1_,
World p_i50161_2_) |
ShulkerBulletEntity(World p_i46771_1_,
double p_i46771_2_,
double p_i46771_4_,
double p_i46771_6_,
double p_i46771_8_,
double p_i46771_10_,
double p_i46771_12_) |
ShulkerBulletEntity(World p_i46772_1_,
LivingEntity p_i46772_2_,
Entity p_i46772_3_,
Direction.Axis p_i46772_4_) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
protected boolean |
canHitEntity(Entity p_230298_1_) |
void |
checkDespawn() |
protected void |
defineSynchedData() |
IPacket<?> |
getAddEntityPacket() |
float |
getBrightness() |
SoundCategory |
getSoundSource() |
boolean |
hurt(DamageSource p_70097_1_,
float p_70097_2_) |
boolean |
isOnFire() |
boolean |
isPickable() |
protected void |
onHit(RayTraceResult p_70227_1_) |
protected void |
onHitBlock(BlockRayTraceResult p_230299_1_) |
protected void |
onHitEntity(EntityRayTraceResult p_213868_1_) |
protected void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
private void |
selectNextMoveDirection(Direction.Axis p_184569_1_) |
private void |
setMoveDirection(Direction p_184568_1_) |
boolean |
shouldRenderAtSqrDistance(double p_70112_1_) |
void |
tick() |
getOwner, lerpMotion, lerpRotation, setOwner, shoot, shootFromRotation, updateRotation
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
getCapability, getCapability
private Entity finalTarget
@Nullable private Direction currentMoveDirection
private int flightSteps
private double targetDeltaX
private double targetDeltaY
private double targetDeltaZ
@Nullable private java.util.UUID targetId
public ShulkerBulletEntity(EntityType<? extends ShulkerBulletEntity> p_i50161_1_, World p_i50161_2_)
public ShulkerBulletEntity(World p_i46771_1_, double p_i46771_2_, double p_i46771_4_, double p_i46771_6_, double p_i46771_8_, double p_i46771_10_, double p_i46771_12_)
public ShulkerBulletEntity(World p_i46772_1_, LivingEntity p_i46772_2_, Entity p_i46772_3_, Direction.Axis p_i46772_4_)
public SoundCategory getSoundSource()
getSoundSource
in class Entity
protected void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class ProjectileEntity
protected void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class ProjectileEntity
protected void defineSynchedData()
defineSynchedData
in class Entity
private void setMoveDirection(@Nullable Direction p_184568_1_)
private void selectNextMoveDirection(@Nullable Direction.Axis p_184569_1_)
public void checkDespawn()
checkDespawn
in class Entity
public void tick()
tick
in class ProjectileEntity
protected boolean canHitEntity(Entity p_230298_1_)
canHitEntity
in class ProjectileEntity
public boolean shouldRenderAtSqrDistance(double p_70112_1_)
shouldRenderAtSqrDistance
in class Entity
public float getBrightness()
getBrightness
in class Entity
protected void onHitEntity(EntityRayTraceResult p_213868_1_)
onHitEntity
in class ProjectileEntity
protected void onHitBlock(BlockRayTraceResult p_230299_1_)
onHitBlock
in class ProjectileEntity
protected void onHit(RayTraceResult p_70227_1_)
onHit
in class ProjectileEntity
public boolean isPickable()
isPickable
in class Entity
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
public IPacket<?> getAddEntityPacket()
getAddEntityPacket
in class Entity