public class FireworkRocketEntity extends ProjectileEntity implements IRendersAsItem
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
attachedToEntity |
private static DataParameter<java.util.OptionalInt> |
DATA_ATTACHED_TO_TARGET |
private static DataParameter<ItemStack> |
DATA_ID_FIREWORKS_ITEM |
private static DataParameter<java.lang.Boolean> |
DATA_SHOT_AT_ANGLE |
private int |
life |
private int |
lifetime |
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 |
---|
FireworkRocketEntity(EntityType<? extends FireworkRocketEntity> p_i50164_1_,
World p_i50164_2_) |
FireworkRocketEntity(World p_i1763_1_,
double p_i1763_2_,
double p_i1763_4_,
double p_i1763_6_,
ItemStack p_i1763_8_) |
FireworkRocketEntity(World p_i231581_1_,
Entity p_i231581_2_,
double p_i231581_3_,
double p_i231581_5_,
double p_i231581_7_,
ItemStack p_i231581_9_) |
FireworkRocketEntity(World p_i50165_1_,
ItemStack p_i50165_2_,
double p_i50165_3_,
double p_i50165_5_,
double p_i50165_7_,
boolean p_i50165_9_) |
FireworkRocketEntity(World p_i231582_1_,
ItemStack p_i231582_2_,
Entity p_i231582_3_,
double p_i231582_4_,
double p_i231582_6_,
double p_i231582_8_,
boolean p_i231582_10_) |
FireworkRocketEntity(World p_i47367_1_,
ItemStack p_i47367_2_,
LivingEntity p_i47367_3_) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
private void |
dealExplosionDamage() |
protected void |
defineSynchedData() |
private void |
explode() |
IPacket<?> |
getAddEntityPacket() |
ItemStack |
getItem() |
void |
handleEntityEvent(byte p_70103_1_) |
private boolean |
hasExplosion() |
private boolean |
isAttachedToEntity() |
boolean |
isAttackable() |
boolean |
isShotAtAngle() |
protected void |
onHit(RayTraceResult result) |
protected void |
onHitBlock(BlockRayTraceResult p_230299_1_) |
protected void |
onHitEntity(EntityRayTraceResult p_213868_1_) |
void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
boolean |
shouldRender(double p_145770_1_,
double p_145770_3_,
double p_145770_5_) |
boolean |
shouldRenderAtSqrDistance(double p_70112_1_) |
void |
tick() |
canHitEntity, 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, checkDespawn, 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, getBrightness, 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, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, hurt, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPickable, 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, 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 static final DataParameter<ItemStack> DATA_ID_FIREWORKS_ITEM
private static final DataParameter<java.util.OptionalInt> DATA_ATTACHED_TO_TARGET
private static final DataParameter<java.lang.Boolean> DATA_SHOT_AT_ANGLE
private int life
private int lifetime
private LivingEntity attachedToEntity
public FireworkRocketEntity(EntityType<? extends FireworkRocketEntity> p_i50164_1_, World p_i50164_2_)
public FireworkRocketEntity(World p_i1763_1_, double p_i1763_2_, double p_i1763_4_, double p_i1763_6_, ItemStack p_i1763_8_)
public FireworkRocketEntity(World p_i231581_1_, @Nullable Entity p_i231581_2_, double p_i231581_3_, double p_i231581_5_, double p_i231581_7_, ItemStack p_i231581_9_)
public FireworkRocketEntity(World p_i47367_1_, ItemStack p_i47367_2_, LivingEntity p_i47367_3_)
public FireworkRocketEntity(World p_i50165_1_, ItemStack p_i50165_2_, double p_i50165_3_, double p_i50165_5_, double p_i50165_7_, boolean p_i50165_9_)
protected void defineSynchedData()
defineSynchedData
in class Entity
public boolean shouldRenderAtSqrDistance(double p_70112_1_)
shouldRenderAtSqrDistance
in class Entity
public boolean shouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_)
shouldRender
in class Entity
public void tick()
tick
in class ProjectileEntity
protected void onHit(RayTraceResult result)
onHit
in class ProjectileEntity
private void explode()
protected void onHitEntity(EntityRayTraceResult p_213868_1_)
onHitEntity
in class ProjectileEntity
protected void onHitBlock(BlockRayTraceResult p_230299_1_)
onHitBlock
in class ProjectileEntity
private boolean hasExplosion()
private void dealExplosionDamage()
private boolean isAttachedToEntity()
public boolean isShotAtAngle()
public void handleEntityEvent(byte p_70103_1_)
handleEntityEvent
in class Entity
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class ProjectileEntity
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class ProjectileEntity
public ItemStack getItem()
getItem
in interface IRendersAsItem
public boolean isAttackable()
isAttackable
in class Entity
public IPacket<?> getAddEntityPacket()
getAddEntityPacket
in class Entity