Class AbstractPlant

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
nokunami.floral_warfare.common.entity.plants.AbstractPlant
All Implemented Interfaces:
net.minecraft.commands.CommandSource, net.minecraft.world.entity.Attackable, net.minecraft.world.entity.OwnableEntity, net.minecraft.world.entity.Targeting, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeEntity, net.minecraftforge.common.extensions.IForgeLivingEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, IFWAction, IAlmanacHoverInfo, IGardenGrown, ISeedPacketInfo, Packetable, ISleepingPlant
Direct Known Subclasses:
AbstractSprout, BasePlant, EvolvedPlant

public abstract class AbstractPlant extends net.minecraft.world.entity.PathfinderMob implements IGardenGrown, Packetable, ISleepingPlant, IFWAction, IAlmanacHoverInfo, ISeedPacketInfo
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity

    net.minecraft.world.entity.LivingEntity.Fallsounds

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    float
     
    protected boolean
     
    int
     
    int
     
    final net.minecraft.world.entity.WalkAnimationState
     
    float
     
    float
     
    final net.minecraft.world.entity.WalkAnimationState
     
    net.minecraft.world.entity.AnimationState
     
    float
     
    float
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    float
     
    float
     
    protected boolean
     
    float
     
    float
     
    float
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    protected boolean
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
     
    int
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     
    net.minecraft.world.entity.AnimationState
     

    Fields inherited from class net.minecraft.world.entity.PathfinderMob

    DEFAULT_WALK_TARGET_VALUE

    Fields inherited from class net.minecraft.world.entity.Mob

    ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward

    Fields inherited from class net.minecraft.world.entity.LivingEntity

    animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, effectsDirty, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractPlant(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.PathfinderMob> type, net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Configuration for goal actions.
    net.minecraft.world.entity.AnimationState
    actionAnim(int i)
     
    void
    addAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    void
     
    void
    ageUp(int amount)
     
    abstract void
     
    void
    biomeTick(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
     
    void
    blink(boolean shouldBlink, int interval)
     
    void
    blink(int interval)
     
    void
     
    float
    brightness(float partialTick)
     
    void
     
    void
     
    void
    broadcastAnimEvent(int type, boolean stopOtherAnim)
     
    void
     
    void
     
    void
     
    void
     
    boolean
    canAttack(@NotNull net.minecraft.world.entity.LivingEntity target)
     
    boolean
     
    boolean
    canBeLeashed(@NotNull net.minecraft.world.entity.player.Player player)
     
    boolean
     
    boolean
     
    boolean
    canBeShoveled(net.minecraft.world.entity.player.Player player)
     
    boolean
     
    boolean
    canStandOnFluid(@NotNull net.minecraft.world.level.material.FluidState state)
     
    final boolean
     
    void
     
    boolean
     
    boolean
    checkPotExist(net.minecraft.core.BlockPos optPos)
     
    void
     
    <T extends AbstractPlant>
    T
    convertPlant(net.minecraft.world.entity.EntityType<?> type, boolean transferInv)
     
    protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl
     
    protected net.minecraft.world.entity.ai.control.LookControl
     
    protected @NotNull net.minecraft.world.entity.ai.control.MoveControl
     
    protected int
    decreaseAirSupply(int pCurrentAir)
     
    protected void
     
    void
    die(@NotNull net.minecraft.world.damagesource.DamageSource cause)
     
    void
    displayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts)
     
    void
     
    <T extends AbstractPlant>
    T
    extraData(T type)
     
    float
    fall(float partialTick)
     
    void
     
    @Nullable net.minecraft.world.entity.SpawnGroupData
    finalizeSpawn(@NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull net.minecraft.world.DifficultyInstance difficulty, @NotNull net.minecraft.world.entity.MobSpawnType type, @Nullable net.minecraft.world.entity.SpawnGroupData data, @Nullable net.minecraft.nbt.CompoundTag tag)
     
    boolean
     
    protected void
     
    void
    gainExp(int exp)
     
    double
     
     
    float
     
    @NotNull net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    int
     
    int
    getAgeLimit(int offset)
     
    int
     
    int
     
    boolean
     
    double
     
    float
    getBlinkInterval(float partialTick)
     
    float
     
    float
     
    net.minecraft.world.item.ItemStack
     
    int
     
    @NotNull net.minecraft.world.phys.Vec3
     
    int
     
    double
     
    boolean
    getFoodForStage(net.minecraft.world.item.ItemStack stack)
     
    @Nullable UUID
     
    net.minecraft.core.particles.ParticleOptions
     
    int
     
    int
     
    float
    getIdleAgeTick(float partialTick)
     
    float
    getIdleTick(float partialTick)
     
    int
     
    protected @NotNull net.minecraft.world.entity.Entity.MovementEmission
     
    getNearbyPlants(double dist)
     
    @Nullable UUID
     
    int
     
    net.minecraft.sounds.SoundEvent
     
    net.minecraft.world.item.ItemStack
    getPickedResult(net.minecraft.world.phys.HitResult target)
     
     
    net.minecraft.core.particles.ParticleOptions
     
     
    int
     
    Optional<net.minecraft.core.BlockPos>
     
    int
     
    float
     
    net.minecraft.sounds.SoundEvent
     
    int
    getSpeedUpSecondsWhenFeeding(int ticksUntilAdult)
     
    int
     
    int
     
    int
     
    net.minecraft.world.scores.Team
     
     
    void
    growthInteraction(net.minecraft.world.item.ItemStack stack)
     
    protected void
     
    void
     
    boolean
     
    void
    healResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    boolean
    hurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
     
    void
     
    boolean
     
    final boolean
     
    boolean
     
    boolean
     
    boolean
    isAlliedTo(@NotNull net.minecraft.world.entity.Entity entity)
     
    boolean
     
    boolean
     
    boolean
    isGrownBy(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
     
    boolean
     
    boolean
    isOwnedBy(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    isPlantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isPottableOn(Map<net.minecraft.world.item.Item,PotInteraction> map)
     
    boolean
     
    boolean
    isPushedByFluid(net.minecraftforge.fluids.FluidType type)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
     
    void
    loadFromPacketTag(net.minecraft.nbt.CompoundTag tag)
     
    protected @NotNull net.minecraft.world.InteractionResult
    mobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     
    void
     
    void
     
    void
    onSyncedDataUpdated(@NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key)
     
    void
    performAction(double damage)
    Fires when the specified IFWAction.getStartAnimDelay() has been reached.
    void
     
     
    void
     
    void
    void
     
    void
    Fires when the animation starts.
    boolean
    processHealing(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    void
    push(double pX, double pY, double pZ)
     
    void
    readAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    protected void
     
    void
    recreateFromPacket(@NotNull net.minecraft.network.protocol.game.ClientboundAddEntityPacket packet)
     
    boolean
    removeWhenFarAway(double distanceToClosestPlayer)
     
    void
    Fires when at the end of a action cycle.
    void
    revivePlant(float healAmount)
     
    void
    saveToPacketTag(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby)
     
    boolean
    secondaryInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.InteractionResult
    secondaryResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    void
    seedPacketList(net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> textList, net.minecraft.world.item.ItemStack stack)
     
    void
    setAct(boolean override)
     
    void
     
    void
    setActTick(float tick)
     
    void
    setAge(int age)
     
    void
    setAgeLock(boolean b)
     
    void
    setAnimDelay(int delay)
     
    void
    setAnimEvent(int anim)
     
    void
    setAnimOverride(boolean override)
     
    void
    setAttackOnSight(boolean attack)
     
    void
    setBaby(boolean b)
     
    void
    setBrightness(float brightness)
     
    void
    setBrightnessO(float brightness)
     
    void
    setExp(int exp)
     
    void
    setGardenerUUID(@Nullable UUID uuid)
     
    void
     
    void
    setHealth(float health)
     
    void
    setInPortal(boolean set)
     
    void
    setOrderedToSit(boolean shouldSit)
     
    void
    setOwnerUUID(@Nullable UUID pUuid)
     
    void
    setPlantAlive(boolean set)
     
    void
    setPlantBaby(boolean b)
     
    void
     
    void
     
    void
    setPlantPose(PlantPose pose, int animDelay)
     
    void
    setPlantSleeping(boolean sleep)
     
    void
    setPortalTime(int time)
     
    void
    setPosToPot(net.minecraft.core.BlockPos pos)
     
    void
    setPotPos(net.minecraft.core.BlockPos pos)
     
    void
    setRepeats(int amount)
     
    void
    setRooted(boolean root)
     
    void
    setSwoonTime(int time)
     
    void
     
    void
     
    void
    setTame(boolean tame)
     
    boolean
     
    net.minecraft.world.InteractionResult
    shoveled(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.InteractionResult
    shovelError(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    boolean
     
    net.minecraft.world.InteractionResult
    sit(boolean state)
     
    net.minecraft.world.InteractionResult
    sit(net.minecraft.world.entity.player.Player player, boolean state, boolean sendSystemMsg)
     
    final int
     
    boolean
    [ ENTITY LOGIC ] Returns whether entity should start sleep goal
    final int
     
    protected void
    spawnTamingParticles(boolean tamed)
    Play the taming effect, will either be hearts or smoke depending on status
    void
     
    net.minecraft.world.InteractionResult
    switchAttackState(net.minecraft.world.entity.player.Player player)
     
    void
     
    void
    syncedActions(int id)
     
    void
    tame(net.minecraft.world.entity.player.Player player)
     
    void
    tamedAttributes(boolean tamed)
     
    void
    thunderHit(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.LightningBolt lightningBolt)
     
    void
    Called to update the entity's position/logic.
    protected float
    tickHeadTurn(float yRot, float animStep)
     
    void
     
    protected void
     
    void
    updateBodyRotationAnimation(float partialTick)
     
    protected void
    updateWalkAnimation(float partialTick)
     
    boolean
    wantsToAttack(net.minecraft.world.entity.LivingEntity target, net.minecraft.world.entity.LivingEntity owner)
     
    void
     

    Methods inherited from class net.minecraft.world.entity.PathfinderMob

    checkSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeash

    Methods inherited from class net.minecraft.world.entity.Mob

    aiStep, ate, baseTick, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createMobAttributes, createNavigation, customServerAiStep, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSound, getAmbientSoundInterval, getArmorSlots, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, updateControlFlags, wantsToPickUp

    Methods inherited from class net.minecraft.world.entity.LivingEntity

    actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHurtDir, getHurtSound, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDimensionChangingDelay, getDimensionsForge, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity

    canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity

    canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid

    Methods inherited from interface nokunami.floral_warfare.api.common.IGardenGrown

    addGardenGrownData, getGardener, readGardenGrownData

    Methods inherited from interface net.minecraft.world.entity.OwnableEntity

    getOwner, level

    Methods inherited from interface nokunami.floral_warfare.api.common.Packetable

    getPickupSound
  • Field Details

    • customWalkAnim

      public final net.minecraft.world.entity.WalkAnimationState customWalkAnim
    • bodyRotation

      public final net.minecraft.world.entity.WalkAnimationState bodyRotation
    • brightnessLayer

      public float brightnessLayer
    • brightnessLayerO

      public float brightnessLayerO
    • idleTick

      public float idleTick
    • idleTickO

      public float idleTickO
    • fallAnim

      public float fallAnim
    • fallAnimO

      public float fallAnimO
    • ageIdleTick

      public float ageIdleTick
    • landTick

      public float landTick
    • landTickO

      public float landTickO
    • landTickTime

      public float landTickTime
    • landed

      protected boolean landed
    • sendDeathMsg

      protected boolean sendDeathMsg
    • blinkIntervalO

      public int blinkIntervalO
    • blinkInterval

      public int blinkInterval
    • takeSunDelay

      public int takeSunDelay
    • syncAction

      public Consumer<AbstractPlant> syncAction
    • spawnAnim

      public net.minecraft.world.entity.AnimationState spawnAnim
    • idleAnim

      public net.minecraft.world.entity.AnimationState idleAnim
    • leafAnim

      public net.minecraft.world.entity.AnimationState leafAnim
    • sitAnim

      public net.minecraft.world.entity.AnimationState sitAnim
    • unSitAnim

      public net.minecraft.world.entity.AnimationState unSitAnim
    • dyingAnim

      public net.minecraft.world.entity.AnimationState dyingAnim
    • reviveAnim

      public net.minecraft.world.entity.AnimationState reviveAnim
    • pottedAnim

      public net.minecraft.world.entity.AnimationState pottedAnim
    • hidingAnim

      public net.minecraft.world.entity.AnimationState hidingAnim
    • unhideAnim

      public net.minecraft.world.entity.AnimationState unhideAnim
    • sleepStartAnim

      public net.minecraft.world.entity.AnimationState sleepStartAnim
    • sleepStopAnim

      public net.minecraft.world.entity.AnimationState sleepStopAnim
    • sleepIdleAnim

      public net.minecraft.world.entity.AnimationState sleepIdleAnim
    • transforming

      public net.minecraft.world.entity.AnimationState transforming
    • transformed

      public net.minecraft.world.entity.AnimationState transformed
    • actionAnim1

      public net.minecraft.world.entity.AnimationState actionAnim1
    • actionAnim2

      public net.minecraft.world.entity.AnimationState actionAnim2
    • actionAnim3

      public net.minecraft.world.entity.AnimationState actionAnim3
    • actionAnim4

      public net.minecraft.world.entity.AnimationState actionAnim4
    • actionAnim5

      public net.minecraft.world.entity.AnimationState actionAnim5
  • Constructor Details

    • AbstractPlant

      protected AbstractPlant(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.PathfinderMob> type, net.minecraft.world.level.Level level)
  • Method Details

    • finalizeSpawn

      @Nullable public @Nullable net.minecraft.world.entity.SpawnGroupData finalizeSpawn(@NotNull @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull @NotNull net.minecraft.world.DifficultyInstance difficulty, @NotNull @NotNull net.minecraft.world.entity.MobSpawnType type, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData data, @Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
      Overrides:
      finalizeSpawn in class net.minecraft.world.entity.Mob
    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class net.minecraft.world.entity.Mob
    • addAdditionalSaveData

      public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.Mob
    • readAdditionalSaveData

      public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.Mob
    • onSyncedDataUpdated

      public void onSyncedDataUpdated(@NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key)
      Overrides:
      onSyncedDataUpdated in class net.minecraft.world.entity.LivingEntity
    • isPlantAlive

      public boolean isPlantAlive()
    • setPlantAlive

      public void setPlantAlive(boolean set)
    • isTamed

      public boolean isTamed()
      Specified by:
      isTamed in interface IGardenGrown
    • setTame

      public void setTame(boolean tame)
      Specified by:
      setTame in interface IGardenGrown
    • isInPortal

      public boolean isInPortal()
      Specified by:
      isInPortal in interface IGardenGrown
    • setInPortal

      public void setInPortal(boolean set)
      Specified by:
      setInPortal in interface IGardenGrown
    • getPortalTime

      public int getPortalTime()
      Specified by:
      getPortalTime in interface IGardenGrown
    • setPortalTime

      public void setPortalTime(int time)
      Specified by:
      setPortalTime in interface IGardenGrown
    • isOrderedToSit

      public boolean isOrderedToSit()
    • setOrderedToSit

      public void setOrderedToSit(boolean shouldSit)
    • isRooted

      public boolean isRooted()
    • setRooted

      public void setRooted(boolean root)
    • isPlantSleeping

      public boolean isPlantSleeping()
      Specified by:
      isPlantSleeping in interface ISleepingPlant
    • setPlantSleeping

      public void setPlantSleeping(boolean sleep)
      Specified by:
      setPlantSleeping in interface ISleepingPlant
    • getAge

      public int getAge()
    • setAge

      public void setAge(int age)
    • isAgeLocked

      public boolean isAgeLocked()
    • setAgeLock

      public void setAgeLock(boolean b)
    • isPlantBaby

      public boolean isPlantBaby()
    • setPlantBaby

      public void setPlantBaby(boolean b)
    • getGrowthStage

      public int getGrowthStage()
    • setGrowthStage

      public void setGrowthStage(int i)
    • setSwoonTime

      public void setSwoonTime(int time)
    • getSwoonTime

      public int getSwoonTime()
    • getOwnerUUID

      @Nullable public @Nullable UUID getOwnerUUID()
      Specified by:
      getOwnerUUID in interface net.minecraft.world.entity.OwnableEntity
    • setOwnerUUID

      public void setOwnerUUID(@Nullable @Nullable UUID pUuid)
      Specified by:
      setOwnerUUID in interface IGardenGrown
    • getGardenerUUID

      @Nullable public @Nullable UUID getGardenerUUID()
      Specified by:
      getGardenerUUID in interface IGardenGrown
    • setGardenerUUID

      public void setGardenerUUID(@Nullable @Nullable UUID uuid)
      Specified by:
      setGardenerUUID in interface IGardenGrown
    • saveToPacketTag

      public void saveToPacketTag(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby)
      Specified by:
      saveToPacketTag in interface Packetable
    • loadFromPacketTag

      public void loadFromPacketTag(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      loadFromPacketTag in interface Packetable
    • setAnimEvent

      public void setAnimEvent(int anim)
    • getAnimEvent

      public int getAnimEvent()
    • setAnimOverride

      public void setAnimOverride(boolean override)
    • getAnimOverride

      public boolean getAnimOverride()
    • setSyncedActId

      public void setSyncedActId(int id)
    • getSyncedActId

      public int getSyncedActId()
    • setAttackOnSight

      public void setAttackOnSight(boolean attack)
    • shouldAttackOnSight

      public boolean shouldAttackOnSight()
    • getPlantPose

      public PlantPose getPlantPose()
    • setPlantPose

      public void setPlantPose(PlantPose pose)
    • setPlantPose

      public void setPlantPose(PlantPose pose, int animDelay)
    • setPlantPose

      public void setPlantPose(String pose)
    • hasPlantPose

      public boolean hasPlantPose(PlantPose pose)
    • getPotPos

      public Optional<net.minecraft.core.BlockPos> getPotPos()
    • setPotPos

      public void setPotPos(net.minecraft.core.BlockPos pos)
    • clearPotPos

      public void clearPotPos()
    • isPotted

      public boolean isPotted()
    • setPosToPot

      public void setPosToPot(net.minecraft.core.BlockPos pos)
    • getAnimDelay

      public int getAnimDelay()
    • setAnimDelay

      public void setAnimDelay(int delay)
    • setExp

      public void setExp(int exp)
    • getExp

      public int getExp()
    • gainExp

      public void gainExp(int exp)
    • isAct

      public boolean isAct()
      Specified by:
      isAct in interface IFWAction
    • setAct

      public void setAct(boolean override)
      Specified by:
      setAct in interface IFWAction
    • setActTick

      public void setActTick(float tick)
      Specified by:
      setActTick in interface IFWAction
    • getActTick

      public float getActTick()
      Specified by:
      getActTick in interface IFWAction
    • setRepeats

      public void setRepeats(int amount)
      Specified by:
      setRepeats in interface IFWAction
    • getRepeats

      public int getRepeats()
      Specified by:
      getRepeats in interface IFWAction
    • getActionState

      public ActionState getActionState()
      Specified by:
      getActionState in interface IFWAction
    • setActionState

      public void setActionState(ActionState state)
      Specified by:
      setActionState in interface IFWAction
    • setBrightness

      public void setBrightness(float brightness)
    • getBrightness

      public float getBrightness()
    • setBrightnessO

      public void setBrightnessO(float brightness)
    • getBrightnessO

      public float getBrightnessO()
    • convertPlant

      public <T extends AbstractPlant> T convertPlant(net.minecraft.world.entity.EntityType<?> type, boolean transferInv)
    • extraData

      public <T extends AbstractPlant> T extraData(T type)
    • getMaxLevel

      public int getMaxLevel()
    • getDefaultSleepDelay

      public int getDefaultSleepDelay()
    • plantProperties

      public abstract PlantProperties plantProperties()
    • getCosmeticItem

      public net.minecraft.world.item.ItemStack getCosmeticItem()
    • getHeadRotSpeed

      public int getHeadRotSpeed()
      Overrides:
      getHeadRotSpeed in class net.minecraft.world.entity.Mob
    • thunderHit

      public void thunderHit(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.LightningBolt lightningBolt)
      Overrides:
      thunderHit in class net.minecraft.world.entity.Entity
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      Overrides:
      canBeCollidedWith in class net.minecraft.world.entity.Entity
    • getPlantFamily

      public List<PlantFamily> getPlantFamily()
    • createBodyControl

      @NotNull protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl createBodyControl()
      Overrides:
      createBodyControl in class net.minecraft.world.entity.Mob
    • createMoveControl

      @NotNull protected @NotNull net.minecraft.world.entity.ai.control.MoveControl createMoveControl()
    • createLookControl

      protected net.minecraft.world.entity.ai.control.LookControl createLookControl()
    • canBeLeashed

      public boolean canBeLeashed(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Overrides:
      canBeLeashed in class net.minecraft.world.entity.Mob
    • handleEntityEvent

      public void handleEntityEvent(byte pId)
      Overrides:
      handleEntityEvent in class net.minecraft.world.entity.Mob
    • onSleepStart

      public void onSleepStart()
      Specified by:
      onSleepStart in interface ISleepingPlant
    • onSleepStop

      public void onSleepStop()
      Specified by:
      onSleepStop in interface ISleepingPlant
    • syncedActions

      public void syncedActions(int id)
    • setSyncedAction

      public void setSyncedAction(Consumer<AbstractPlant> predicate)
    • broadcastSyncedAction

      public void broadcastSyncedAction(Consumer<AbstractPlant> predicate)
    • broadcastSyncedActionsEvent

      public void broadcastSyncedActionsEvent()
    • broadcastSyncedActionsEvent

      public void broadcastSyncedActionsEvent(int id)
    • broadcastAnimEvent

      public void broadcastAnimEvent(int type)
    • broadcastAnimEvent

      public void broadcastAnimEvent(int type, boolean stopOtherAnim)
    • broadcastPlantingParticles

      public void broadcastPlantingParticles()
    • getNearbyPlants

      public List<AbstractPlant> getNearbyPlants(double dist)
    • tick

      public void tick()
      Called to update the entity's position/logic. Ticks for both client and server.
      Overrides:
      tick in class net.minecraft.world.entity.Mob
    • swoonTick

      public void swoonTick()
    • dropPacketOnDeath

      public void dropPacketOnDeath()
    • showSwoonTick

      public boolean showSwoonTick()
    • touch

      protected void touch(AbstractSunOrb orb)
    • pottedTick

      public void pottedTick()
    • ageTick

      public void ageTick()
    • growUp

      protected void growUp()
    • getAgeLimit

      public int getAgeLimit(int offset)
    • getGrowthNotificationParticle

      public net.minecraft.core.particles.ParticleOptions getGrowthNotificationParticle()
    • getFoodForStage

      public boolean getFoodForStage(net.minecraft.world.item.ItemStack stack)
    • growthInteraction

      public void growthInteraction(net.minecraft.world.item.ItemStack stack)
    • biomeTick

      public void biomeTick(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
    • tickPoseStates

      public void tickPoseStates()
    • checkPotExist

      public boolean checkPotExist()
    • checkPotExist

      public boolean checkPotExist(net.minecraft.core.BlockPos optPos)
    • floatTick

      protected void floatTick()
    • isPushedByFluid

      public boolean isPushedByFluid(net.minecraftforge.fluids.FluidType type)
      Specified by:
      isPushedByFluid in interface net.minecraftforge.common.extensions.IForgeEntity
    • canStandOnFluid

      public boolean canStandOnFluid(@NotNull @NotNull net.minecraft.world.level.material.FluidState state)
      Overrides:
      canStandOnFluid in class net.minecraft.world.entity.LivingEntity
    • decreaseAirSupply

      protected int decreaseAirSupply(int pCurrentAir)
      Overrides:
      decreaseAirSupply in class net.minecraft.world.entity.LivingEntity
    • tickHeadTurn

      protected float tickHeadTurn(float yRot, float animStep)
      Overrides:
      tickHeadTurn in class net.minecraft.world.entity.Mob
    • getAttackDamage

      public double getAttackDamage()
      Specified by:
      getAttackDamage in interface IFWAction
    • getActionSpeed

      public double getActionSpeed()
      Specified by:
      getActionSpeed in interface IFWAction
    • getFollowRange

      public double getFollowRange()
      Specified by:
      getFollowRange in interface IFWAction
    • reassessTameGoals

      protected void reassessTameGoals()
    • tamedAttributes

      public void tamedAttributes(boolean tamed)
    • getMovementEmission

      @NotNull protected @NotNull net.minecraft.world.entity.Entity.MovementEmission getMovementEmission()
      Overrides:
      getMovementEmission in class net.minecraft.world.entity.Entity
    • getDeltaMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getDeltaMovement()
      Overrides:
      getDeltaMovement in class net.minecraft.world.entity.Entity
    • isTamable

      public boolean isTamable()
    • canPerformActions

      public boolean canPerformActions()
    • canAttack

      public boolean canAttack(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target)
      Overrides:
      canAttack in class net.minecraft.world.entity.LivingEntity
    • isOwnedBy

      public boolean isOwnedBy(net.minecraft.world.entity.LivingEntity entity)
      Specified by:
      isOwnedBy in interface IGardenGrown
    • isGrownBy

      public boolean isGrownBy(net.minecraft.world.entity.LivingEntity entity)
      Specified by:
      isGrownBy in interface IGardenGrown
    • wantsToAttack

      public boolean wantsToAttack(net.minecraft.world.entity.LivingEntity target, net.minecraft.world.entity.LivingEntity owner)
    • getTeam

      public net.minecraft.world.scores.Team getTeam()
      Overrides:
      getTeam in class net.minecraft.world.entity.Entity
    • isAlliedTo

      public boolean isAlliedTo(@NotNull @NotNull net.minecraft.world.entity.Entity entity)
      Overrides:
      isAlliedTo in class net.minecraft.world.entity.Entity
    • die

      public void die(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource cause)
      Overrides:
      die in class net.minecraft.world.entity.LivingEntity
    • removeWhenFarAway

      public boolean removeWhenFarAway(double distanceToClosestPlayer)
      Overrides:
      removeWhenFarAway in class net.minecraft.world.entity.Mob
    • checkDespawn

      public void checkDespawn()
      Overrides:
      checkDespawn in class net.minecraft.world.entity.Mob
    • setHealth

      public void setHealth(float health)
      Overrides:
      setHealth in class net.minecraft.world.entity.LivingEntity
    • revivePlant

      public void revivePlant(float healAmount)
    • sleepingConditions

      public boolean sleepingConditions()
      [ ENTITY LOGIC ] Returns whether entity should start sleep goal
      Specified by:
      sleepingConditions in interface ISleepingPlant
    • isBaby

      public boolean isBaby()
      Overrides:
      isBaby in class net.minecraft.world.entity.LivingEntity
    • setBaby

      public void setBaby(boolean b)
      Overrides:
      setBaby in class net.minecraft.world.entity.Mob
    • getScale

      public float getScale()
      Overrides:
      getScale in class net.minecraft.world.entity.LivingEntity
    • hurt

      public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.LivingEntity
    • updateWalkAnimation

      protected void updateWalkAnimation(float partialTick)
      Overrides:
      updateWalkAnimation in class net.minecraft.world.entity.LivingEntity
    • updateBodyRotationAnimation

      public void updateBodyRotationAnimation(float partialTick)
    • push

      public void push(double pX, double pY, double pZ)
      Overrides:
      push in class net.minecraft.world.entity.Entity
    • mobInteract

      @NotNull protected @NotNull net.minecraft.world.InteractionResult mobInteract(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand)
      Overrides:
      mobInteract in class net.minecraft.world.entity.Mob
    • ageUp

      public void ageUp(int amount)
    • getSpeedUpSecondsWhenFeeding

      public int getSpeedUpSecondsWhenFeeding(int ticksUntilAdult)
    • tame

      public void tame(net.minecraft.world.entity.player.Player player)
    • switchAttackState

      public net.minecraft.world.InteractionResult switchAttackState(net.minecraft.world.entity.player.Player player)
    • sit

      public net.minecraft.world.InteractionResult sit(boolean state)
    • sit

      public net.minecraft.world.InteractionResult sit(net.minecraft.world.entity.player.Player player, boolean state, boolean sendSystemMsg)
    • shoveled

      public net.minecraft.world.InteractionResult shoveled(net.minecraft.world.entity.player.Player player)
    • canBeShoveled

      public boolean canBeShoveled(net.minecraft.world.entity.player.Player player)
    • shovelError

      public net.minecraft.world.InteractionResult shovelError(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • getPickedResult

      public net.minecraft.world.item.ItemStack getPickedResult(net.minecraft.world.phys.HitResult target)
      Specified by:
      getPickedResult in interface net.minecraftforge.common.extensions.IForgeEntity
    • getSunCost

      public int getSunCost()
      Specified by:
      getSunCost in interface Packetable
    • getPacketCooldown

      public int getPacketCooldown()
      Specified by:
      getPacketCooldown in interface Packetable
    • isAbleToMove

      public final boolean isAbleToMove()
    • canVisuallyShake

      public final boolean canVisuallyShake()
    • spawnAnimDuration

      public final int spawnAnimDuration()
    • sitAnimDuration

      public final int sitAnimDuration()
    • plantedParticle

      public void plantedParticle()
    • isReadyToBeWatered

      public boolean isReadyToBeWatered()
    • watered

      public void watered()
    • processHealing

      public boolean processHealing(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • healResult

      public void healResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • secondaryInteract

      public boolean secondaryInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • secondaryResult

      public net.minecraft.world.InteractionResult secondaryResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • getTileTypes

      public List<PlantTileType> getTileTypes()
    • isPlantableOn

      public boolean isPlantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape)
    • isPottableOn

      public boolean isPottableOn(Map<net.minecraft.world.item.Item,PotInteraction> map)
    • getPlantingParticle

      public net.minecraft.core.particles.ParticleOptions getPlantingParticle()
    • getShoveledSound

      public net.minecraft.sounds.SoundEvent getShoveledSound()
    • canBePlantedOn

      public boolean canBePlantedOn()
    • canBePlantedAround

      public boolean canBePlantedAround()
    • ignorePacket

      public boolean ignorePacket()
    • floatsInLiquid

      public boolean floatsInLiquid()
    • getPacketSound

      public net.minecraft.sounds.SoundEvent getPacketSound()
    • animationTick

      public abstract void animationTick()
    • blinkTick

      public void blinkTick()
    • blink

      public void blink(int interval)
    • blink

      public void blink(boolean shouldBlink, int interval)
    • getBlinkInterval

      public float getBlinkInterval(float partialTick)
    • isBlinking

      public boolean isBlinking()
    • idleTick

      public void idleTick()
    • fallTick

      public void fallTick()
    • landTick

      public void landTick()
    • getIdleAgeTick

      public float getIdleAgeTick(float partialTick)
    • brightness

      public float brightness(float partialTick)
    • brightnessTick

      public void brightnessTick()
    • fall

      public float fall(float partialTick)
    • getIdleTick

      public float getIdleTick(float partialTick)
    • playAttackSound

      public void playAttackSound()
      Specified by:
      playAttackSound in interface IFWAction
    • actionAnim

      public net.minecraft.world.entity.AnimationState actionAnim(int i)
    • stopAllActionAnimation

      public void stopAllActionAnimation()
    • spawnTamingParticles

      protected void spawnTamingParticles(boolean tamed)
      Play the taming effect, will either be hearts or smoke depending on status
    • isShaking

      public boolean isShaking()
    • getAddEntityPacket

      @NotNull public @NotNull net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getAddEntityPacket()
      Overrides:
      getAddEntityPacket in class net.minecraft.world.entity.Entity
    • recreateFromPacket

      public void recreateFromPacket(@NotNull @NotNull net.minecraft.network.protocol.game.ClientboundAddEntityPacket packet)
      Overrides:
      recreateFromPacket in class net.minecraft.world.entity.LivingEntity
    • displayInfo

      public void displayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts)
      Specified by:
      displayInfo in interface IAlmanacHoverInfo
    • seedPacketList

      public void seedPacketList(net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> textList, net.minecraft.world.item.ItemStack stack)
      Specified by:
      seedPacketList in interface ISeedPacketInfo
    • actConfig

      public ActionConfig actConfig()
      Description copied from interface: IFWAction
      Configuration for goal actions.
      Specified by:
      actConfig in interface IFWAction
    • preAction

      public void preAction()
      Description copied from interface: IFWAction
      Fires when the animation starts.
      Specified by:
      preAction in interface IFWAction
    • performAction

      public void performAction(double damage)
      Description copied from interface: IFWAction
      Fires when the specified IFWAction.getStartAnimDelay() has been reached.
      Specified by:
      performAction in interface IFWAction
    • postActionTick

      public void postActionTick()
      Description copied from interface: IFWAction
      Ticks after IFWAction.performAction(double) fires. (won't work if post delay is 0)
      Specified by:
      postActionTick in interface IFWAction
    • resetAction

      public void resetAction()
      Description copied from interface: IFWAction
      Fires when at the end of a action cycle.
      Specified by:
      resetAction in interface IFWAction