CakeEntity

public final class CakeEntity extends Entity(source)

A flying cake entity, which splashes on collision damaging target(s).

Constructors

Link copied to clipboard
public CakeEntity CakeEntity(World world, Vec3d position, Vec3d velocity, LivingEntity thrower)
public CakeEntity CakeEntity(EntityType<CakeEntity> entityType, World world)

Properties

Link copied to clipboard

The position, where the cake was spawned.

Inherited properties

Link copied to clipboard
public final Integer age
Link copied to clipboard

Gets the approximate position of the item in the staff, when held my an entity.

Link copied to clipboard

Gets the approximate position of the staff's tip, when held by an entity.

Link copied to clipboard
private final BlockPos blockPos
Link copied to clipboard
private Box boundingBox
Link copied to clipboard
public final Boolean canUseStaff

Checks if the user has sufficient space in front to use the staff.

Link copied to clipboard
private final ChunkPos chunkPos
Link copied to clipboard
public final Boolean collidedSoftly
Link copied to clipboard
private final Set<String> commandTags
Link copied to clipboard
protected final DataTracker dataTracker
Link copied to clipboard
public final Float distanceTraveled
Link copied to clipboard
public final Float fallDistance
Link copied to clipboard
Link copied to clipboard
protected final Boolean firstUpdate
Link copied to clipboard
protected final Object2DoubleMap<TagKey<Fluid>> fluidHeight
Link copied to clipboard
private Boolean glowing
Link copied to clipboard
public final Boolean groundCollision
Link copied to clipboard
Link copied to clipboard
public final Float horizontalSpeed
Link copied to clipboard
private Integer id
Link copied to clipboard
Link copied to clipboard
protected final Boolean inNetherPortal
Link copied to clipboard
public final Boolean inPowderSnow
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Double lastRenderX
Link copied to clipboard
public final Double lastRenderY
Link copied to clipboard
public final Double lastRenderZ
Link copied to clipboard
protected final Vec3d movementMultiplier
Link copied to clipboard
protected final Integer netherPortalTime
Link copied to clipboard
public final Boolean noClip
Link copied to clipboard
private Boolean onGround
Link copied to clipboard
private Float pitch
Link copied to clipboard
Link copied to clipboard
private final Vec3d pos
Link copied to clipboard
Link copied to clipboard
public final Float prevPitch
Link copied to clipboard
public final Double prevX
Link copied to clipboard
public final Double prevY
Link copied to clipboard
public final Float prevYaw
Link copied to clipboard
public final Double prevZ
Link copied to clipboard
protected final Random random
Link copied to clipboard
@Nullable()
private final Entity.RemovalReason removalReason
Link copied to clipboard
protected final Integer ridingCooldown
Link copied to clipboard
public final Float speed
Link copied to clipboard
private final Float standingEyeHeight
Link copied to clipboard
protected final Boolean submergedInWater
Link copied to clipboard
Link copied to clipboard
public final Integer timeUntilRegen
Link copied to clipboard
protected final Boolean touchingWater
Link copied to clipboard
Link copied to clipboard
private final EntityType<?> type
Link copied to clipboard
protected final UUID uuid
Link copied to clipboard
protected final String uuidString
Link copied to clipboard
@Nullable()
private final Entity vehicle
Link copied to clipboard
private Vec3d velocity
Link copied to clipboard
public final Boolean velocityDirty
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean wasInPowderSnow
Link copied to clipboard
public final Boolean wasOnFire
Link copied to clipboard
private World world
Link copied to clipboard
private Float yaw

Functions

Link copied to clipboard
public Boolean canHit()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Double getGravity()
Link copied to clipboard
Link copied to clipboard
public final BlockPos getStartPos()
Link copied to clipboard
public Boolean handleAttack(Entity attacker)
Link copied to clipboard
public Boolean handleFallDamage(Float fallDistance, Float damageMultiplier, DamageSource damageSource)
Link copied to clipboard
Link copied to clipboard
public Unit onRemoved()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit setStartPos(BlockPos startPos)
Link copied to clipboard
public final static Unit throwCake(World world, Vec3d position, Vec3d velocity, LivingEntity thrower)

Creates a new CakeEntity and throws it.

Link copied to clipboard
public Unit tick()
Link copied to clipboard

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Unit addFlapEffects()
Link copied to clipboard
protected Unit addPassenger(Entity passenger)
Link copied to clipboard
public Unit addVelocity(Vec3d velocity)
public Unit addVelocity(Double deltaX, Double deltaY, Double deltaZ)
Link copied to clipboard
protected Vec3d adjustMovementForPiston(Vec3d movement)
Link copied to clipboard
protected Vec3d adjustMovementForSneaking(Vec3d movement, MovementType type)
Link copied to clipboard
public Unit animateDamage(Float yaw)
Link copied to clipboard
public Unit applyDamageEffects(LivingEntity attacker, Entity target)
Link copied to clipboard
protected Unit applyGravity()
Link copied to clipboard
public Float applyMirror(BlockMirror mirror)
Link copied to clipboard
public Float applyRotation(BlockRotation rotation)
Link copied to clipboard
Link copied to clipboard
public Unit baseTick()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Boolean canAddPassenger(Entity passenger)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, Float explosionPower)
Link copied to clipboard
public Boolean canFreeze()
Link copied to clipboard
public Boolean canModifyAt(World world, BlockPos pos)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Boolean canStartRiding(Entity entity)
Link copied to clipboard
Link copied to clipboard
public Unit changeLookDirection(Double cursorDeltaX, Double cursorDeltaY)
Link copied to clipboard
Link copied to clipboard
public Unit checkDespawn()
Link copied to clipboard
public Boolean collidesWith(Entity other)
Link copied to clipboard
Link copied to clipboard
public Unit copyFrom(Entity original)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean damage(DamageSource source, Float amount)
Link copied to clipboard
public final Unit detach()
Link copied to clipboard
public final Unit discard()
Link copied to clipboard
Link copied to clipboard
public Float distanceTo(Entity entity)
Link copied to clipboard
public Boolean doesNotCollide(Double offsetX, Double offsetY, Double offsetZ)
Link copied to clipboard
@Nullable()
public ItemEntity dropItem(ItemConvertible item)
@Nullable()
public ItemEntity dropItem(ItemConvertible item, Integer yOffset)
Link copied to clipboard
@Nullable()
public ItemEntity dropStack(ItemStack stack)
@Nullable()
public ItemEntity dropStack(ItemStack stack, Float yOffset)
Link copied to clipboard
public Unit emitGameEvent(RegistryEntry<GameEvent> event, @Nullable() Entity entity)
Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public Unit extinguish()
Link copied to clipboard
Link copied to clipboard
protected Unit fall(Double heightDifference, Boolean onGround, BlockState state, BlockPos landedPosition)
Link copied to clipboard
public Integer getAir()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Integer getBlockX()
Link copied to clipboard
public final Integer getBlockY()
Link copied to clipboard
public final Integer getBlockZ()
Link copied to clipboard
public Double getBodyY(Double heightScale)
Link copied to clipboard
public Float getBodyYaw()
Link copied to clipboard
public final Box getBoundingBox()
Link copied to clipboard
@Deprecated(message = "Deprecated in Java")
public Float getBrightnessAtEyes()
Link copied to clipboard
Link copied to clipboard
public final Vec3d getCameraPosVec(Float tickDelta)
Link copied to clipboard
Link copied to clipboard
public Vec3d getClientCameraPosVec(Float tickDelta)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable()
public Entity getControllingVehicle()
Link copied to clipboard
@Nullable()
public Text getCustomName()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Text getDefaultName()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, Float max)
Link copied to clipboard
Link copied to clipboard
public final Float getEyeHeight(EntityPose pose)
Link copied to clipboard
public final Vec3d getEyePos()
Link copied to clipboard
public Double getEyeY()
Link copied to clipboard
Link copied to clipboard
public final Double getFinalGravity()
Link copied to clipboard
Link copied to clipboard
@Nullable()
public Entity getFirstPassenger()
Link copied to clipboard
protected Boolean getFlag(Integer index)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Vec3d getHandPosOffset(Item item)
Link copied to clipboard
public Float getHeadYaw()
Link copied to clipboard
public final Float getHeight()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Integer getId()
Link copied to clipboard
Link copied to clipboard
@Deprecated(message = "Deprecated in Java")
protected BlockState getLandingBlockState()
Link copied to clipboard
@Deprecated(message = "Deprecated in Java")
public BlockPos getLandingPos()
Link copied to clipboard
protected Vec3d getLeashOffset()
public Vec3d getLeashOffset(Float tickDelta)
Link copied to clipboard
public Vec3d getLeashPos(Float delta)
Link copied to clipboard
public final Vec3d getLerpedPos(Float delta)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Integer getMaxAir()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Text getName()
Link copied to clipboard
Link copied to clipboard
public final Vec3d getOppositeRotationVector(Float tickDelta)
protected final Vec3d getOppositeRotationVector(Float pitch, Float yaw)
Link copied to clipboard
public Double getParticleX(Double widthScale)
Link copied to clipboard
public Double getParticleZ(Double widthScale)
Link copied to clipboard
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, Float scaleFactor)
Link copied to clipboard
public final List<Entity> getPassengerList()
Link copied to clipboard
Link copied to clipboard
public Vec3d getPassengerRidingPos(Entity passenger)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable()
public ItemStack getPickBlockStack()
Link copied to clipboard
Link copied to clipboard
public Float getPitch()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Optional<BlockLocating.Rectangle> getPortalRect(ServerWorld destWorld, BlockPos destPos, Boolean destIsNether, WorldBorder worldBorder)
Link copied to clipboard
public Vec3d getPos()
Link copied to clipboard
Link copied to clipboard
protected BlockPos getPosWithYOffset(Float offset)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Vec3d getRotationVec(Float tickDelta)
Link copied to clipboard
Link copied to clipboard
public final Vec3d getRotationVector(Float pitch, Float yaw)
Link copied to clipboard
Link copied to clipboard
@Nullable()
public final String getSavedEntityId()
Link copied to clipboard
@Nullable()
public Team getScoreboardTeam()
Link copied to clipboard
@Nullable()
public MinecraftServer getServer()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Float getStandingEyeHeight()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable()
protected TeleportTarget getTeleportTarget(ServerWorld destination)
Link copied to clipboard
Link copied to clipboard
public EntityType<?> getType()
Link copied to clipboard
public UUID getUuid()
Link copied to clipboard
Link copied to clipboard
@Nullable()
public Entity getVehicle()
Link copied to clipboard
Link copied to clipboard
public Vec3d getVelocity()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Float getWidth()
Link copied to clipboard
public World getWorld()
Link copied to clipboard
public final Double getX()
Link copied to clipboard
public final Double getY()
Link copied to clipboard
public Float getYaw()
Link copied to clipboard
public final Double getZ()
Link copied to clipboard
public Unit handleStatus(Byte status)
Link copied to clipboard
protected Boolean hasCollidedSoftly(Vec3d adjustedMovement)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Integer hashCode()
Link copied to clipboard
Link copied to clipboard
public Boolean hasPassenger(Predicate<Entity> predicate)
public Boolean hasPassenger(Entity passenger)
Link copied to clipboard
public Boolean hasPassengerDeep(Entity passenger)
Link copied to clipboard
Link copied to clipboard
public Boolean hasPermissionLevel(Integer permissionLevel)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public ActionResult interact(PlayerEntity player, Hand hand)
Link copied to clipboard
public ActionResult interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
Link copied to clipboard
public Boolean isAlive()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isFrozen()
Link copied to clipboard
public Boolean isGlowing()
Link copied to clipboard
public final Boolean isGlowingLocal()
Link copied to clipboard
Link copied to clipboard
public Boolean isInFluid()
Link copied to clipboard
public Boolean isInLava()
Link copied to clipboard
public Boolean isInPose(EntityPose pose)
Link copied to clipboard
public Boolean isInRange(Entity entity, Double radius)
public Boolean isInRange(Entity entity, Double horizontalRadius, Double verticalRadius)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isInvulnerableTo(DamageSource damageSource)
Link copied to clipboard
public Boolean isLiving()
Link copied to clipboard
public Boolean isOnFire()
Link copied to clipboard
Link copied to clipboard
public Boolean isOnRail()
Link copied to clipboard
public Boolean isPartOf(Entity entity)
Link copied to clipboard
public Boolean isPlayer()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean isRemoved()
Link copied to clipboard
public Boolean isSilent()
Link copied to clipboard
Link copied to clipboard
public Boolean isSneaky()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isSubmergedIn(TagKey<Fluid> fluidTag)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isTeammate(Entity other)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isWet()
Link copied to clipboard
public Unit kill()
Link copied to clipboard
protected Unit lerpPosAndRotation(Integer step, Double x, Double y, Double z, Double yaw, Double pitch)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit move(MovementType movementType, Vec3d movement)
Link copied to clipboard
@Nullable()
public Entity moveToWorld(ServerWorld destination)
Link copied to clipboard
Link copied to clipboard
public Double offsetX(Double widthScale)
Link copied to clipboard
public Double offsetZ(Double widthScale)
Link copied to clipboard
protected Unit onBlockCollision(BlockState state)
Link copied to clipboard
Link copied to clipboard
public Unit onDamaged(DamageSource damageSource)
Link copied to clipboard
Link copied to clipboard
public Unit onExplodedBy(@Nullable() Entity entity)
Link copied to clipboard
Link copied to clipboard
public Unit onLanding()
Link copied to clipboard
public Unit onPassengerLookAround(Entity passenger)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Unit onSwimmingStart()
Link copied to clipboard
Link copied to clipboard
protected Unit playCombinationStepSounds(BlockState primaryState, BlockState secondaryState)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit playSound(SoundEvent sound, Float volume, Float pitch)
Link copied to clipboard
Link copied to clipboard
protected Unit playStepSound(BlockPos pos, BlockState state)
Link copied to clipboard
protected Unit playSwimSound()
protected Unit playSwimSound(Float volume)
Link copied to clipboard
Link copied to clipboard
protected Vec3d positionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect)
Link copied to clipboard
public Unit pushAwayFrom(Entity entity)
Link copied to clipboard
protected Unit pushOutOfBlocks(Double x, Double y, Double z)
Link copied to clipboard
public HitResult raycast(Double maxDistance, Float tickDelta, Boolean includeFluids)
Link copied to clipboard
public Unit readNbt(NbtCompound nbt)
Link copied to clipboard
protected Unit refreshPosition()
Link copied to clipboard
public Unit refreshPositionAndAngles(BlockPos pos, Float yaw, Float pitch)
public Unit refreshPositionAndAngles(Double x, Double y, Double z, Float yaw, Float pitch)
Link copied to clipboard
@Deprecated(message = "Deprecated in Java")
protected Unit reinitDimensions()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Unit removePassenger(Entity passenger)
Link copied to clipboard
public Unit requestTeleport(Double destX, Double destY, Double destZ)
Link copied to clipboard
public Unit requestTeleportAndDismount(Double destX, Double destY, Double destZ)
Link copied to clipboard
public Unit requestTeleportOffset(Double offsetX, Double offsetY, Double offsetZ)
Link copied to clipboard
Link copied to clipboard
public final Unit resetPosition()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit sendMessage(Text message)
Link copied to clipboard
public Unit setAir(Integer air)
Link copied to clipboard
public Unit setBodyYaw(Float bodyYaw)
Link copied to clipboard
public final Unit setBoundingBox(Box boundingBox)
Link copied to clipboard
Link copied to clipboard
public Unit setCustomName(@Nullable() Text name)
Link copied to clipboard
Link copied to clipboard
public Unit setFireTicks(Integer fireTicks)
Link copied to clipboard
protected Unit setFlag(Integer index, Boolean value)
Link copied to clipboard
public Unit setFrozenTicks(Integer frozenTicks)
Link copied to clipboard
public final Unit setGlowing(Boolean glowing)
Link copied to clipboard
public Unit setHeadYaw(Float headYaw)
Link copied to clipboard
public Unit setId(Integer id)
Link copied to clipboard
Link copied to clipboard
public Unit setInPowderSnow(Boolean inPowderSnow)
Link copied to clipboard
public Unit setInvisible(Boolean invisible)
Link copied to clipboard
public Unit setInvulnerable(Boolean invulnerable)
Link copied to clipboard
public Unit setNoGravity(Boolean noGravity)
Link copied to clipboard
public Unit setOnFire(Boolean onFire)
Link copied to clipboard
public final Unit setOnFireFor(Integer seconds)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit setOnGround(Boolean onGround)
public Unit setOnGround(Boolean onGround, Vec3d movement)
Link copied to clipboard
public Unit setPitch(Float pitch)
Link copied to clipboard
public Unit setPortalCooldown(Integer portalCooldown)
Link copied to clipboard
public final Unit setPos(Double x, Double y, Double z)
Link copied to clipboard
public Unit setPose(EntityPose pose)
Link copied to clipboard
public final Unit setPosition(Vec3d pos)
public Unit setPosition(Double x, Double y, Double z)
Link copied to clipboard
public final Unit setRemoved(Entity.RemovalReason reason)
Link copied to clipboard
protected Unit setRotation(Float yaw, Float pitch)
Link copied to clipboard
public Unit setSilent(Boolean silent)
Link copied to clipboard
public Unit setSneaking(Boolean sneaking)
Link copied to clipboard
public Unit setSprinting(Boolean sprinting)
Link copied to clipboard
public Unit setSwimming(Boolean swimming)
Link copied to clipboard
public Unit setUuid(UUID uuid)
Link copied to clipboard
public Unit setVelocity(Vec3d velocity)
public Unit setVelocity(Double x, Double y, Double z)
Link copied to clipboard
Link copied to clipboard
protected Unit setWorld(World world)
Link copied to clipboard
public Unit setYaw(Float yaw)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean shouldRender(Double distance)
public Boolean shouldRender(Double cameraX, Double cameraY, Double cameraZ)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit slowMovement(BlockState state, Vec3d multiplier)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean startRiding(Entity entity)
public Boolean startRiding(Entity entity, Boolean force)
Link copied to clipboard
public Unit stopRiding()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit teleport(Double destX, Double destY, Double destZ)
public Boolean teleport(ServerWorld world, Double destX, Double destY, Double destZ, Set<PositionFlag> flags, Float yaw, Float pitch)
Link copied to clipboard
protected Unit tickInVoid()
Link copied to clipboard
protected Unit tickPortal()
Link copied to clipboard
Link copied to clipboard
public Unit tickRiding()
Link copied to clipboard
protected NbtList toNbtList(Double values)
protected NbtList toNbtList(Float values)
Link copied to clipboard
public String toString()
Link copied to clipboard
Link copied to clipboard
protected Unit unsetRemoved()
Link copied to clipboard
Link copied to clipboard
public Unit updateKilledAdvancementCriterion(Entity entityKilled, Integer score, DamageSource damageSource)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit updatePassengerPosition(Entity passenger)
protected Unit updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
Link copied to clipboard
public Unit updatePosition(Double x, Double y, Double z)
Link copied to clipboard
public Unit updatePositionAndAngles(Double x, Double y, Double z, Float yaw, Float pitch)
Link copied to clipboard
protected Unit updateSupportingBlockPos(Boolean onGround, @Nullable() Vec3d movement)
Link copied to clipboard
Link copied to clipboard
public Unit updateTrackedHeadRotation(Float yaw, Integer interpolationSteps)
Link copied to clipboard
Link copied to clipboard
public Unit updateTrackedPositionAndAngles(Double x, Double y, Double z, Float yaw, Float pitch, Integer interpolationSteps)
Link copied to clipboard
public Unit updateVelocity(Float speed, Vec3d movementInput)
Link copied to clipboard
Link copied to clipboard