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.FallsoundsNested 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.RemovalReasonNested 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
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatefloatprotected booleanintintfinal net.minecraft.world.entity.WalkAnimationStatefloatfloatfinal net.minecraft.world.entity.WalkAnimationStatenet.minecraft.world.entity.AnimationStatefloatfloatnet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatefloatfloatprotected booleanfloatfloatfloatnet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStateprotected booleannet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStateintnet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStatenet.minecraft.world.entity.AnimationStateFields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields 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, xpRewardFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPlant(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.PathfinderMob> type, net.minecraft.world.level.Level level) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration for goal actions.net.minecraft.world.entity.AnimationStateactionAnim(int i) voidaddAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag) voidageTick()voidageUp(int amount) abstract voidvoidbiomeTick(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome) voidblink(boolean shouldBlink, int interval) voidblink(int interval) voidfloatbrightness(float partialTick) voidvoidbroadcastAnimEvent(int type) voidbroadcastAnimEvent(int type, boolean stopOtherAnim) voidvoidbroadcastSyncedAction(Consumer<AbstractPlant> predicate) voidvoidbroadcastSyncedActionsEvent(int id) booleancanAttack(@NotNull net.minecraft.world.entity.LivingEntity target) booleanbooleancanBeLeashed(@NotNull net.minecraft.world.entity.player.Player player) booleanbooleanbooleancanBeShoveled(net.minecraft.world.entity.player.Player player) booleanbooleancanStandOnFluid(@NotNull net.minecraft.world.level.material.FluidState state) final booleanvoidbooleanbooleancheckPotExist(net.minecraft.core.BlockPos optPos) void<T extends AbstractPlant>
TconvertPlant(net.minecraft.world.entity.EntityType<?> type, boolean transferInv) protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControlprotected net.minecraft.world.entity.ai.control.LookControlprotected @NotNull net.minecraft.world.entity.ai.control.MoveControlprotected intdecreaseAirSupply(int pCurrentAir) protected voidvoiddie(@NotNull net.minecraft.world.damagesource.DamageSource cause) voiddisplayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts) void<T extends AbstractPlant>
TextraData(T type) floatfall(float partialTick) voidfallTick()@Nullable net.minecraft.world.entity.SpawnGroupDatafinalizeSpawn(@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) booleanprotected voidvoidgainExp(int exp) doublefloat@NotNull net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>intgetAge()intgetAgeLimit(int offset) intintbooleandoublefloatgetBlinkInterval(float partialTick) floatfloatnet.minecraft.world.item.ItemStackint@NotNull net.minecraft.world.phys.Vec3intgetExp()doublebooleangetFoodForStage(net.minecraft.world.item.ItemStack stack) @Nullable UUIDnet.minecraft.core.particles.ParticleOptionsintintfloatgetIdleAgeTick(float partialTick) floatgetIdleTick(float partialTick) intprotected @NotNull net.minecraft.world.entity.Entity.MovementEmissiongetNearbyPlants(double dist) @Nullable UUIDintnet.minecraft.sounds.SoundEventnet.minecraft.world.item.ItemStackgetPickedResult(net.minecraft.world.phys.HitResult target) net.minecraft.core.particles.ParticleOptionsintOptional<net.minecraft.core.BlockPos>intfloatgetScale()net.minecraft.sounds.SoundEventintgetSpeedUpSecondsWhenFeeding(int ticksUntilAdult) intintintnet.minecraft.world.scores.TeamgetTeam()voidgrowthInteraction(net.minecraft.world.item.ItemStack stack) protected voidgrowUp()voidhandleEntityEvent(byte pId) booleanhasPlantPose(PlantPose pose) voidhealResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) booleanhurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount) voididleTick()booleanfinal booleanbooleanisAct()booleanbooleanisAlliedTo(@NotNull net.minecraft.world.entity.Entity entity) booleanisBaby()booleanbooleanisGrownBy(net.minecraft.world.entity.LivingEntity entity) booleanbooleanbooleanisOwnedBy(net.minecraft.world.entity.LivingEntity entity) booleanisPlantableOn(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) booleanbooleanbooleanbooleanisPottableOn(Map<net.minecraft.world.item.Item, PotInteraction> map) booleanisPotted()booleanisPushedByFluid(net.minecraftforge.fluids.FluidType type) booleanbooleanisRooted()booleanbooleanbooleanisTamed()voidlandTick()voidloadFromPacketTag(net.minecraft.nbt.CompoundTag tag) protected @NotNull net.minecraft.world.InteractionResultmobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) voidvoidvoidonSyncedDataUpdated(@NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key) voidperformAction(double damage) Fires when the specifiedIFWAction.getStartAnimDelay()has been reached.voidabstract PlantPropertiesvoidvoidTicks afterIFWAction.performAction(double)fires.voidvoidFires when the animation starts.booleanprocessHealing(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) voidpush(double pX, double pY, double pZ) voidreadAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag) protected voidvoidrecreateFromPacket(@NotNull net.minecraft.network.protocol.game.ClientboundAddEntityPacket packet) booleanremoveWhenFarAway(double distanceToClosestPlayer) voidFires when at the end of a action cycle.voidrevivePlant(float healAmount) voidsaveToPacketTag(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby) booleansecondaryInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) net.minecraft.world.InteractionResultsecondaryResult(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) voidseedPacketList(net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> textList, net.minecraft.world.item.ItemStack stack) voidsetAct(boolean override) voidsetActionState(ActionState state) voidsetActTick(float tick) voidsetAge(int age) voidsetAgeLock(boolean b) voidsetAnimDelay(int delay) voidsetAnimEvent(int anim) voidsetAnimOverride(boolean override) voidsetAttackOnSight(boolean attack) voidsetBaby(boolean b) voidsetBrightness(float brightness) voidsetBrightnessO(float brightness) voidsetExp(int exp) voidsetGardenerUUID(@Nullable UUID uuid) voidsetGrowthStage(int i) voidsetHealth(float health) voidsetInPortal(boolean set) voidsetOrderedToSit(boolean shouldSit) voidsetOwnerUUID(@Nullable UUID pUuid) voidsetPlantAlive(boolean set) voidsetPlantBaby(boolean b) voidsetPlantPose(String pose) voidsetPlantPose(PlantPose pose) voidsetPlantPose(PlantPose pose, int animDelay) voidsetPlantSleeping(boolean sleep) voidsetPortalTime(int time) voidsetPosToPot(net.minecraft.core.BlockPos pos) voidsetPotPos(net.minecraft.core.BlockPos pos) voidsetRepeats(int amount) voidsetRooted(boolean root) voidsetSwoonTime(int time) voidsetSyncedActId(int id) voidsetSyncedAction(Consumer<AbstractPlant> predicate) voidsetTame(boolean tame) booleannet.minecraft.world.InteractionResultshoveled(net.minecraft.world.entity.player.Player player) net.minecraft.world.InteractionResultshovelError(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) booleannet.minecraft.world.InteractionResultsit(boolean state) net.minecraft.world.InteractionResultsit(net.minecraft.world.entity.player.Player player, boolean state, boolean sendSystemMsg) final intboolean[ ENTITY LOGIC ] Returns whether entity should start sleep goalfinal intprotected voidspawnTamingParticles(boolean tamed) Play the taming effect, will either be hearts or smoke depending on statusvoidnet.minecraft.world.InteractionResultswitchAttackState(net.minecraft.world.entity.player.Player player) voidvoidsyncedActions(int id) voidtame(net.minecraft.world.entity.player.Player player) voidtamedAttributes(boolean tamed) voidthunderHit(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.LightningBolt lightningBolt) voidtick()Called to update the entity's position/logic.protected floattickHeadTurn(float yRot, float animStep) voidprotected voidtouch(AbstractSunOrb orb) voidupdateBodyRotationAnimation(float partialTick) protected voidupdateWalkAnimation(float partialTick) booleanwantsToAttack(net.minecraft.world.entity.LivingEntity target, net.minecraft.world.entity.LivingEntity owner) voidwatered()Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeashMethods 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, wantsToPickUpMethods 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, wasExperienceConsumedMethods 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, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods 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, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluidMethods inherited from interface nokunami.floral_warfare.api.common.ai.IFWAction
decrementRepeat, getDefaultDelay, getPostAnimDelay, getPreAnimDelay, getStartAnimDelay, loadFWAction, repeatActionAnim, saveFWAction, setActionStateIf, startAction, stopActionMethods inherited from interface nokunami.floral_warfare.api.common.IGardenGrown
addGardenGrownData, getGardener, readGardenGrownDataMethods inherited from interface net.minecraft.world.entity.OwnableEntity
getOwner, levelMethods 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 -
blink
protected boolean blink -
landed
protected boolean landed -
sendDeathMsg
protected boolean sendDeathMsg -
blinkIntervalO
public int blinkIntervalO -
blinkInterval
public int blinkInterval -
takeSunDelay
public int takeSunDelay -
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:
finalizeSpawnin classnet.minecraft.world.entity.Mob
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classnet.minecraft.world.entity.Mob
-
addAdditionalSaveData
public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
readAdditionalSaveData
public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
onSyncedDataUpdated
public void onSyncedDataUpdated(@NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key) - Overrides:
onSyncedDataUpdatedin classnet.minecraft.world.entity.LivingEntity
-
isPlantAlive
public boolean isPlantAlive() -
setPlantAlive
public void setPlantAlive(boolean set) -
isTamed
public boolean isTamed()- Specified by:
isTamedin interfaceIGardenGrown
-
setTame
public void setTame(boolean tame) - Specified by:
setTamein interfaceIGardenGrown
-
isInPortal
public boolean isInPortal()- Specified by:
isInPortalin interfaceIGardenGrown
-
setInPortal
public void setInPortal(boolean set) - Specified by:
setInPortalin interfaceIGardenGrown
-
getPortalTime
public int getPortalTime()- Specified by:
getPortalTimein interfaceIGardenGrown
-
setPortalTime
public void setPortalTime(int time) - Specified by:
setPortalTimein interfaceIGardenGrown
-
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:
isPlantSleepingin interfaceISleepingPlant
-
setPlantSleeping
public void setPlantSleeping(boolean sleep) - Specified by:
setPlantSleepingin interfaceISleepingPlant
-
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
- Specified by:
getOwnerUUIDin interfacenet.minecraft.world.entity.OwnableEntity
-
setOwnerUUID
- Specified by:
setOwnerUUIDin interfaceIGardenGrown
-
getGardenerUUID
- Specified by:
getGardenerUUIDin interfaceIGardenGrown
-
setGardenerUUID
- Specified by:
setGardenerUUIDin interfaceIGardenGrown
-
saveToPacketTag
public void saveToPacketTag(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby) - Specified by:
saveToPacketTagin interfacePacketable
-
loadFromPacketTag
public void loadFromPacketTag(net.minecraft.nbt.CompoundTag tag) - Specified by:
loadFromPacketTagin interfacePacketable
-
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
-
setPlantPose
-
setPlantPose
-
setPlantPose
-
hasPlantPose
-
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() -
setAct
public void setAct(boolean override) -
setActTick
public void setActTick(float tick) - Specified by:
setActTickin interfaceIFWAction
-
getActTick
public float getActTick()- Specified by:
getActTickin interfaceIFWAction
-
setRepeats
public void setRepeats(int amount) - Specified by:
setRepeatsin interfaceIFWAction
-
getRepeats
public int getRepeats()- Specified by:
getRepeatsin interfaceIFWAction
-
getActionState
- Specified by:
getActionStatein interfaceIFWAction
-
setActionState
- Specified by:
setActionStatein interfaceIFWAction
-
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
-
getMaxLevel
public int getMaxLevel() -
getDefaultSleepDelay
public int getDefaultSleepDelay() -
plantProperties
-
getCosmeticItem
public net.minecraft.world.item.ItemStack getCosmeticItem() -
getHeadRotSpeed
public int getHeadRotSpeed()- Overrides:
getHeadRotSpeedin classnet.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:
thunderHitin classnet.minecraft.world.entity.Entity
-
canBeCollidedWith
public boolean canBeCollidedWith()- Overrides:
canBeCollidedWithin classnet.minecraft.world.entity.Entity
-
getPlantFamily
-
createBodyControl
@NotNull protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl createBodyControl()- Overrides:
createBodyControlin classnet.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:
canBeLeashedin classnet.minecraft.world.entity.Mob
-
handleEntityEvent
public void handleEntityEvent(byte pId) - Overrides:
handleEntityEventin classnet.minecraft.world.entity.Mob
-
onSleepStart
public void onSleepStart()- Specified by:
onSleepStartin interfaceISleepingPlant
-
onSleepStop
public void onSleepStop()- Specified by:
onSleepStopin interfaceISleepingPlant
-
syncedActions
public void syncedActions(int id) -
setSyncedAction
-
broadcastSyncedAction
-
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
-
tick
public void tick()Called to update the entity's position/logic. Ticks for both client and server.- Overrides:
tickin classnet.minecraft.world.entity.Mob
-
swoonTick
public void swoonTick() -
dropPacketOnDeath
public void dropPacketOnDeath() -
showSwoonTick
public boolean showSwoonTick() -
touch
-
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:
isPushedByFluidin interfacenet.minecraftforge.common.extensions.IForgeEntity
-
canStandOnFluid
public boolean canStandOnFluid(@NotNull @NotNull net.minecraft.world.level.material.FluidState state) - Overrides:
canStandOnFluidin classnet.minecraft.world.entity.LivingEntity
-
decreaseAirSupply
protected int decreaseAirSupply(int pCurrentAir) - Overrides:
decreaseAirSupplyin classnet.minecraft.world.entity.LivingEntity
-
tickHeadTurn
protected float tickHeadTurn(float yRot, float animStep) - Overrides:
tickHeadTurnin classnet.minecraft.world.entity.Mob
-
getAttackDamage
public double getAttackDamage()- Specified by:
getAttackDamagein interfaceIFWAction
-
getActionSpeed
public double getActionSpeed()- Specified by:
getActionSpeedin interfaceIFWAction
-
getFollowRange
public double getFollowRange()- Specified by:
getFollowRangein interfaceIFWAction
-
reassessTameGoals
protected void reassessTameGoals() -
tamedAttributes
public void tamedAttributes(boolean tamed) -
getMovementEmission
@NotNull protected @NotNull net.minecraft.world.entity.Entity.MovementEmission getMovementEmission()- Overrides:
getMovementEmissionin classnet.minecraft.world.entity.Entity
-
getDeltaMovement
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getDeltaMovement()- Overrides:
getDeltaMovementin classnet.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:
canAttackin classnet.minecraft.world.entity.LivingEntity
-
isOwnedBy
public boolean isOwnedBy(net.minecraft.world.entity.LivingEntity entity) - Specified by:
isOwnedByin interfaceIGardenGrown
-
isGrownBy
public boolean isGrownBy(net.minecraft.world.entity.LivingEntity entity) - Specified by:
isGrownByin interfaceIGardenGrown
-
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:
getTeamin classnet.minecraft.world.entity.Entity
-
isAlliedTo
public boolean isAlliedTo(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
isAlliedToin classnet.minecraft.world.entity.Entity
-
die
public void die(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource cause) - Overrides:
diein classnet.minecraft.world.entity.LivingEntity
-
removeWhenFarAway
public boolean removeWhenFarAway(double distanceToClosestPlayer) - Overrides:
removeWhenFarAwayin classnet.minecraft.world.entity.Mob
-
checkDespawn
public void checkDespawn()- Overrides:
checkDespawnin classnet.minecraft.world.entity.Mob
-
setHealth
public void setHealth(float health) - Overrides:
setHealthin classnet.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:
sleepingConditionsin interfaceISleepingPlant
-
isBaby
public boolean isBaby()- Overrides:
isBabyin classnet.minecraft.world.entity.LivingEntity
-
setBaby
public void setBaby(boolean b) - Overrides:
setBabyin classnet.minecraft.world.entity.Mob
-
getScale
public float getScale()- Overrides:
getScalein classnet.minecraft.world.entity.LivingEntity
-
hurt
public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classnet.minecraft.world.entity.LivingEntity
-
updateWalkAnimation
protected void updateWalkAnimation(float partialTick) - Overrides:
updateWalkAnimationin classnet.minecraft.world.entity.LivingEntity
-
updateBodyRotationAnimation
public void updateBodyRotationAnimation(float partialTick) -
push
public void push(double pX, double pY, double pZ) - Overrides:
pushin classnet.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:
mobInteractin classnet.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:
getPickedResultin interfacenet.minecraftforge.common.extensions.IForgeEntity
-
getSunCost
public int getSunCost()- Specified by:
getSunCostin interfacePacketable
-
getPacketCooldown
public int getPacketCooldown()- Specified by:
getPacketCooldownin interfacePacketable
-
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
-
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
-
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:
playAttackSoundin interfaceIFWAction
-
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:
getAddEntityPacketin classnet.minecraft.world.entity.Entity
-
recreateFromPacket
public void recreateFromPacket(@NotNull @NotNull net.minecraft.network.protocol.game.ClientboundAddEntityPacket packet) - Overrides:
recreateFromPacketin classnet.minecraft.world.entity.LivingEntity
-
displayInfo
public void displayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts) - Specified by:
displayInfoin interfaceIAlmanacHoverInfo
-
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:
seedPacketListin interfaceISeedPacketInfo
-
actConfig
Description copied from interface:IFWActionConfiguration for goal actions. -
preAction
public void preAction()Description copied from interface:IFWActionFires when the animation starts. -
performAction
public void performAction(double damage) Description copied from interface:IFWActionFires when the specifiedIFWAction.getStartAnimDelay()has been reached.- Specified by:
performActionin interfaceIFWAction
-
postActionTick
public void postActionTick()Description copied from interface:IFWActionTicks afterIFWAction.performAction(double)fires. (won't work if post delay is 0)- Specified by:
postActionTickin interfaceIFWAction
-
resetAction
public void resetAction()Description copied from interface:IFWActionFires when at the end of a action cycle.- Specified by:
resetActionin interfaceIFWAction
-