public class ShulkerBulletEntity extends ProjectileEntity
Entity.PositionUpdater| Modifier and Type | Field and Description |
|---|---|
private Direction |
direction |
private int |
stepCount |
private Entity |
target |
private UUID |
targetUuid |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawDUMMY| Constructor and Description |
|---|
ShulkerBulletEntity(EntityType<? extends ShulkerBulletEntity> type,
World world) |
ShulkerBulletEntity(World world,
double x,
double y,
double z,
double velocityX,
double velocityY,
double velocityZ) |
ShulkerBulletEntity(World world,
LivingEntity owner,
Entity target,
Direction.Axis axis) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDespawn() |
boolean |
collides() |
Packet<?> |
createSpawnPacket() |
boolean |
damage(DamageSource source,
float amount) |
float |
getBrightnessAtEyes() |
SoundCategory |
getSoundCategory() |
protected void |
initDataTracker() |
boolean |
isOnFire() |
protected boolean |
method_26958(Entity entity) |
private void |
method_7486(Direction.Axis axis) |
protected void |
onBlockHit(BlockHitResult blockHitResult) |
protected void |
onCollision(HitResult hitResult) |
protected void |
onEntityHit(EntityHitResult entityHitResult) |
protected void |
readCustomDataFromTag(CompoundTag tag) |
private void |
setDirection(Direction direction) |
boolean |
shouldRender(double distance) |
void |
tick() |
protected void |
writeCustomDataToTag(CompoundTag tag) |
getOwner, method_26962, setOwner, setProperties, setVelocity, setVelocityClient, updateRotationaddPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnGround, isPartOf, isPushable, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29239, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollideprivate Entity target
private int stepCount
private double targetX
private double targetY
private double targetZ
public ShulkerBulletEntity(EntityType<? extends ShulkerBulletEntity> type, World world)
@Environment(value=CLIENT) public ShulkerBulletEntity(World world, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
public ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis)
public SoundCategory getSoundCategory()
getSoundCategory in class Entityprotected void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class ProjectileEntityprotected void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class ProjectileEntityprotected void initDataTracker()
initDataTracker in class Entityprivate void method_7486(@Nullable Direction.Axis axis)
public void checkDespawn()
checkDespawn in class Entitypublic void tick()
tick in class ProjectileEntityprotected boolean method_26958(Entity entity)
method_26958 in class ProjectileEntity@Environment(value=CLIENT) public boolean shouldRender(double distance)
shouldRender in class Entitypublic float getBrightnessAtEyes()
getBrightnessAtEyes in class Entityprotected void onEntityHit(EntityHitResult entityHitResult)
onEntityHit in class ProjectileEntityprotected void onBlockHit(BlockHitResult blockHitResult)
onBlockHit in class ProjectileEntityprotected void onCollision(HitResult hitResult)
onCollision in class ProjectileEntitypublic boolean damage(DamageSource source, float amount)
public Packet<?> createSpawnPacket()
createSpawnPacket in class Entity