@EnvironmentInterfaces(value=@EnvironmentInterface(value=CLIENT,itf=FlyingItemEntity.class)) public class FireworkRocketEntity extends ProjectileEntity implements FlyingItemEntity
Entity.PositionUpdater| Modifier and Type | Field and Description |
|---|---|
private static TrackedData<ItemStack> |
ITEM |
private int |
life |
private int |
lifeTime |
private LivingEntity |
shooter |
private static TrackedData<OptionalInt> |
SHOOTER_ENTITY_ID |
private static TrackedData<Boolean> |
SHOT_AT_ANGLE |
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 |
|---|
FireworkRocketEntity(EntityType<? extends FireworkRocketEntity> type,
World world) |
FireworkRocketEntity(World world,
double x,
double y,
double z,
ItemStack stack) |
FireworkRocketEntity(World world,
Entity entity,
double x,
double y,
double z,
ItemStack stack) |
FireworkRocketEntity(World world,
ItemStack stack,
double x,
double y,
double z,
boolean shotAtAngle) |
FireworkRocketEntity(World world,
ItemStack stack,
Entity entity,
double x,
double y,
double z,
boolean shotAtAngle) |
FireworkRocketEntity(World world,
ItemStack stack,
LivingEntity shooter) |
| Modifier and Type | Method and Description |
|---|---|
Packet<?> |
createSpawnPacket() |
private void |
explode() |
private void |
explodeAndRemove() |
ItemStack |
getStack() |
void |
handleStatus(byte status) |
private boolean |
hasExplosionEffects() |
protected void |
initDataTracker() |
boolean |
isAttackable() |
protected void |
onBlockHit(BlockHitResult blockHitResult) |
protected void |
onEntityHit(EntityHitResult entityHitResult) |
void |
readCustomDataFromTag(CompoundTag tag) |
boolean |
shouldRender(double distance) |
boolean |
shouldRender(double cameraX,
double cameraY,
double cameraZ) |
void |
tick() |
boolean |
wasShotAtAngle() |
private boolean |
wasShotByEntity() |
void |
writeCustomDataToTag(CompoundTag tag) |
getOwner, method_26958, method_26962, onCollision, 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, checkDespawn, collides, collidesWith, copyFrom, copyPositionAndRotation, damage, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, 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, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, 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, 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 static final TrackedData<ItemStack> ITEM
private static final TrackedData<OptionalInt> SHOOTER_ENTITY_ID
private static final TrackedData<Boolean> SHOT_AT_ANGLE
private int life
private int lifeTime
private LivingEntity shooter
public FireworkRocketEntity(EntityType<? extends FireworkRocketEntity> type, World world)
public FireworkRocketEntity(World world, double x, double y, double z, ItemStack stack)
public FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack)
public FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter)
public FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle)
protected void initDataTracker()
initDataTracker in class Entity@Environment(value=CLIENT) public boolean shouldRender(double distance)
shouldRender in class Entity@Environment(value=CLIENT)
public boolean shouldRender(double cameraX,
double cameraY,
double cameraZ)
shouldRender in class Entitypublic void tick()
tick in class ProjectileEntityprivate void explodeAndRemove()
protected void onEntityHit(EntityHitResult entityHitResult)
onEntityHit in class ProjectileEntityprotected void onBlockHit(BlockHitResult blockHitResult)
onBlockHit in class ProjectileEntityprivate boolean hasExplosionEffects()
private void explode()
private boolean wasShotByEntity()
public boolean wasShotAtAngle()
@Environment(value=CLIENT) public void handleStatus(byte status)
handleStatus in class Entitypublic void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class ProjectileEntitypublic void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class ProjectileEntity@Environment(value=CLIENT) public ItemStack getStack()
getStack in interface FlyingItemEntitypublic boolean isAttackable()
isAttackable in class Entitypublic Packet<?> createSpawnPacket()
createSpawnPacket in class Entity