Class PlantPartEntity
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
nokunami.floral_warfare.common.entity.plants.BasePlant
nokunami.floral_warfare.common.entity.plants.PlantPartEntity
- All Implemented Interfaces:
net.minecraft.commands.CommandSource,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.NeutralMob,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,IPersonality,ISeedPacketInfo,Packetable,ISleepingPlant
- Direct Known Subclasses:
AbstractPeaHead
-
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 TypeFieldDescriptionprotected static final net.minecraft.network.syncher.EntityDataAccessor<Integer>protected static final net.minecraft.network.syncher.EntityDataAccessor<Integer>Fields inherited from class nokunami.floral_warfare.common.entity.plants.BasePlant
canPlayHappyAnimation, frostWalker, wateringAnimFields inherited from class nokunami.floral_warfare.common.entity.plants.AbstractPlant
actionAnim1, actionAnim2, actionAnim3, actionAnim4, actionAnim5, ageIdleTick, blink, blinkInterval, blinkIntervalO, bodyRotation, brightnessLayer, brightnessLayerO, customWalkAnim, dyingAnim, fallAnim, fallAnimO, hidingAnim, idleAnim, idleTick, idleTickO, landed, landTick, landTickO, landTickTime, leafAnim, pottedAnim, reviveAnim, sendDeathMsg, sitAnim, sleepIdleAnim, sleepStartAnim, sleepStopAnim, spawnAnim, syncAction, takeSunDelay, transformed, transforming, unhideAnim, unSitAnimFields 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
NULLFields inherited from interface net.minecraft.world.entity.NeutralMob
TAG_ANGER_TIME, TAG_ANGRY_AT -
Constructor Summary
ConstructorsConstructorDescriptionPlantPartEntity(net.minecraft.world.entity.EntityType<? extends PlantPartEntity> type, net.minecraft.world.level.Level level) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag) voidbiomeTick(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome) booleancanAttack(@NotNull net.minecraft.world.entity.LivingEntity target) booleanprotected booleancanRide(@NotNull net.minecraft.world.entity.Entity vehicle) net.minecraft.world.entity.EntitychangeDimension(@NotNull net.minecraft.server.level.ServerLevel destination, @NotNull net.minecraftforge.common.util.ITeleporter teleporter) protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControlprotected voidvoiddisplayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts) booleandoHurtTarget(@NotNull net.minecraft.world.entity.Entity entity) protected voiddoPush(@NotNull net.minecraft.world.entity.Entity entity) voidfallTick()protected voiddoubledouble@NotNull net.minecraft.world.phys.Vec3doubleint@Nullable net.minecraft.world.entity.Entityint@Nullable UUIDnet.minecraft.core.BlockPosprotected voidbooleanhurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount) booleanisInWall()booleanbooleanbooleanisPushedByFluid(net.minecraftforge.fluids.FluidType type) voidloadFromTagList(net.minecraft.nbt.CompoundTag tag) voidoffsetPos(double xOffset, double yOffset, double zOffset) voidvoidpush(@NotNull net.minecraft.world.entity.Entity entity) voidreadAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag tag) protected voidvoidnet.minecraft.nbt.CompoundTagsavePartToPacket(boolean isTamed, boolean isBaby) voidsetHeadId(int count) voidsetLastHurtByMob(@Nullable net.minecraft.world.entity.LivingEntity entity) voidsetLastHurtByPlayer(@Nullable net.minecraft.world.entity.player.Player player) voidsetLastHurtMob(@NotNull net.minecraft.world.entity.Entity entity) voidsetParent(net.minecraft.world.entity.Entity entity) voidsetParentId(int id) voidsetParentUUID(@Nullable UUID uuid) booleanvoidvoidvoidtick()Called to update the entity's position/logic.voidMethods inherited from class nokunami.floral_warfare.common.entity.plants.BasePlant
addMorale, animationTick, blinkTick, canBeSeenAsEnemy, canCollideWith, canPerformActions, createAttributes, extraData, finalizeSpawn, getFrostWalker, getMorale, getPersistentAngerTarget, getPersonalityId, getRemainingPersistentAngerTime, getTempMorale, getWetTick, hurtOverride, isCaffeinated, isInvulnerableTo, isJumping, isWet, loadFromPacketTag, mobInteract, movementGoals, onChangedBlock, personalityGoals, playDehydrateSound, playHydrateSound, playIdleAnim, playIdleLeafAnim, revivePlant, saveToPacketTag, setCaffeinated, setFrostWalker, setMorale, setPersistentAngerTarget, setPersonalityId, setRemainingPersistentAngerTime, setTempMorale, setWateringAnim, setWet, setWetTick, shouldDecrementTempMorale, sleepingConditions, sleepParticles, spawnWithPersonality, startPersistentAngerTimer, tame, thawTick, wetTickMethods inherited from class nokunami.floral_warfare.common.entity.plants.AbstractPlant
actConfig, actionAnim, ageTick, ageUp, blink, blink, brightness, brightnessTick, broadcastAnimEvent, broadcastAnimEvent, broadcastPlantingParticles, broadcastSyncedAction, broadcastSyncedActionsEvent, broadcastSyncedActionsEvent, canBeCollidedWith, canBeLeashed, canBePlantedAround, canBePlantedOn, canBeShoveled, canStandOnFluid, canVisuallyShake, checkDespawn, checkPotExist, checkPotExist, clearPotPos, convertPlant, createLookControl, createMoveControl, decreaseAirSupply, die, dropPacketOnDeath, fall, floatsInLiquid, gainExp, getActionState, getActTick, getAddEntityPacket, getAge, getAgeLimit, getAnimDelay, getAnimEvent, getAnimOverride, getBlinkInterval, getBrightness, getBrightnessO, getCosmeticItem, getDefaultSleepDelay, getExp, getFoodForStage, getGardenerUUID, getGrowthNotificationParticle, getGrowthStage, getHeadRotSpeed, getIdleAgeTick, getIdleTick, getMaxLevel, getMovementEmission, getNearbyPlants, getOwnerUUID, getPacketCooldown, getPacketSound, getPickedResult, getPlantFamily, getPlantingParticle, getPlantPose, getPortalTime, getPotPos, getRepeats, getScale, getShoveledSound, getSpeedUpSecondsWhenFeeding, getSunCost, getSwoonTime, getSyncedActId, getTeam, getTileTypes, growthInteraction, growUp, handleEntityEvent, hasPlantPose, healResult, idleTick, ignorePacket, isAbleToMove, isAct, isAgeLocked, isAlliedTo, isBaby, isBlinking, isGrownBy, isInPortal, isOrderedToSit, isOwnedBy, isPlantableOn, isPlantAlive, isPlantBaby, isPlantSleeping, isPottableOn, isPotted, isReadyToBeWatered, isRooted, isShaking, isTamable, isTamed, landTick, onSleepStart, onSleepStop, onSyncedDataUpdated, performAction, plantedParticle, playAttackSound, postActionTick, preAction, processHealing, push, reassessTameGoals, recreateFromPacket, removeWhenFarAway, resetAction, secondaryInteract, secondaryResult, seedPacketList, setAct, setActionState, setActTick, setAge, setAgeLock, setAnimDelay, setAnimEvent, setAnimOverride, setAttackOnSight, setBaby, setBrightness, setBrightnessO, setExp, setGardenerUUID, setGrowthStage, setHealth, setInPortal, setOrderedToSit, setOwnerUUID, setPlantAlive, setPlantBaby, setPlantPose, setPlantPose, setPlantPose, setPlantSleeping, setPortalTime, setPosToPot, setPotPos, setRepeats, setRooted, setSwoonTime, setSyncedActId, setSyncedAction, setTame, shouldAttackOnSight, shoveled, shovelError, sit, sit, sitAnimDuration, spawnAnimDuration, spawnTamingParticles, stopAllActionAnimation, switchAttackState, syncedActions, tamedAttributes, thunderHit, tickHeadTurn, touch, updateBodyRotationAnimation, updateWalkAnimation, wantsToAttack, wateredMethods 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, 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, 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, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, doAutoAttackOnTouch, doesEmitEquipEvent, 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, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, pushEntities, randomTeleport, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setItemInHand, setJumping, 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, canEnterPose, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, 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, 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, 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 nokunami.floral_warfare.api.common.IPersonality
addToAlmanacTooltip, getAllMorale, getMood, getPersonality, isPersonalityMethods inherited from interface net.minecraft.world.entity.NeutralMob
addPersistentAngerSaveData, forgetCurrentTargetAndRefreshUniversalAnger, getLastHurtByMob, getTarget, isAngry, isAngryAt, isAngryAtAllPlayers, playerDied, readPersistentAngerSaveData, setTarget, stopBeingAngry, updatePersistentAngerMethods inherited from interface net.minecraft.world.entity.OwnableEntity
getOwner, levelMethods inherited from interface nokunami.floral_warfare.api.common.Packetable
getPickupSound
-
Field Details
-
HEAD_ID
-
PARENT_UUID
-
PARENT_ID
-
-
Constructor Details
-
PlantPartEntity
public PlantPartEntity(net.minecraft.world.entity.EntityType<? extends PlantPartEntity> type, net.minecraft.world.level.Level level)
-
-
Method Details
-
registerGoals
protected void registerGoals()- Overrides:
registerGoalsin classBasePlant
-
targetingGoals
public void targetingGoals()- Overrides:
targetingGoalsin classBasePlant
-
getDeltaMovement
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getDeltaMovement()- Overrides:
getDeltaMovementin classAbstractPlant
-
createBodyControl
@NotNull protected @NotNull net.minecraft.world.entity.ai.control.BodyRotationControl createBodyControl()- Overrides:
createBodyControlin classAbstractPlant
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classBasePlant
-
addAdditionalSaveData
public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
addAdditionalSaveDatain classBasePlant
-
readAdditionalSaveData
public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
readAdditionalSaveDatain classBasePlant
-
getParentUUID
-
setParentUUID
-
getParentId
public int getParentId() -
setParentId
public void setParentId(int id) -
getParent
@Nullable public @Nullable net.minecraft.world.entity.Entity getParent() -
setParent
public void setParent(net.minecraft.world.entity.Entity entity) -
getHeadId
public int getHeadId() -
setHeadId
public void setHeadId(int count) -
plantProperties
- Specified by:
plantPropertiesin classAbstractPlant
-
tick
public void tick()Description copied from class:AbstractPlantCalled to update the entity's position/logic. Ticks for both client and server. -
hurt
public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) -
doHurtTarget
public boolean doHurtTarget(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
doHurtTargetin classnet.minecraft.world.entity.Mob
-
setLastHurtMob
public void setLastHurtMob(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
setLastHurtMobin classnet.minecraft.world.entity.LivingEntity
-
setLastHurtByMob
public void setLastHurtByMob(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity) - Specified by:
setLastHurtByMobin interfacenet.minecraft.world.entity.NeutralMob- Overrides:
setLastHurtByMobin classnet.minecraft.world.entity.LivingEntity
-
setLastHurtByPlayer
public void setLastHurtByPlayer(@Nullable @Nullable net.minecraft.world.entity.player.Player player) - Specified by:
setLastHurtByPlayerin interfacenet.minecraft.world.entity.NeutralMob- Overrides:
setLastHurtByPlayerin classnet.minecraft.world.entity.LivingEntity
-
canAttack
public boolean canAttack(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target) - Specified by:
canAttackin interfacenet.minecraft.world.entity.NeutralMob- Overrides:
canAttackin classAbstractPlant
-
canRide
protected boolean canRide(@NotNull @NotNull net.minecraft.world.entity.Entity vehicle) -
isPickable
public boolean isPickable()- Overrides:
isPickablein classnet.minecraft.world.entity.LivingEntity
-
isInWall
public boolean isInWall()- Overrides:
isInWallin classnet.minecraft.world.entity.LivingEntity
-
doPush
protected void doPush(@NotNull @NotNull net.minecraft.world.entity.Entity entity) -
push
public void push(@NotNull @NotNull net.minecraft.world.entity.Entity entity) -
isPushable
public boolean isPushable()- Overrides:
isPushablein classBasePlant
-
isPushedByFluid
public boolean isPushedByFluid(net.minecraftforge.fluids.FluidType type) - Specified by:
isPushedByFluidin interfacenet.minecraftforge.common.extensions.IForgeEntity- Overrides:
isPushedByFluidin classAbstractPlant
-
canChangeDimensions
public boolean canChangeDimensions()- Overrides:
canChangeDimensionsin classnet.minecraft.world.entity.LivingEntity
-
handleNetherPortal
protected void handleNetherPortal()- Overrides:
handleNetherPortalin classnet.minecraft.world.entity.Entity
-
changeDimension
public net.minecraft.world.entity.Entity changeDimension(@NotNull @NotNull net.minecraft.server.level.ServerLevel destination, @NotNull @NotNull net.minecraftforge.common.util.ITeleporter teleporter) - Overrides:
changeDimensionin classnet.minecraft.world.entity.Entity
-
getAttackDamage
public double getAttackDamage()- Specified by:
getAttackDamagein interfaceIFWAction- Overrides:
getAttackDamagein classBasePlant
-
getActionSpeed
public double getActionSpeed()- Specified by:
getActionSpeedin interfaceIFWAction- Overrides:
getActionSpeedin classAbstractPlant
-
getFollowRange
public double getFollowRange()- Specified by:
getFollowRangein interfaceIFWAction- Overrides:
getFollowRangein classAbstractPlant
-
removeAfterChangingDimensionsPublic
public void removeAfterChangingDimensionsPublic() -
getPortalEntrancePosPublic
public net.minecraft.core.BlockPos getPortalEntrancePosPublic() -
tickPoseStates
public void tickPoseStates()- Overrides:
tickPoseStatesin classBasePlant
-
biomeTick
public void biomeTick(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome) - Overrides:
biomeTickin classAbstractPlant
-
floatTick
protected void floatTick()- Overrides:
floatTickin classAbstractPlant
-
fallTick
public void fallTick()- Overrides:
fallTickin classAbstractPlant
-
pottedTick
public void pottedTick()- Overrides:
pottedTickin classAbstractPlant
-
swoonTick
public void swoonTick()- Overrides:
swoonTickin classAbstractPlant
-
showSwoonTick
public boolean showSwoonTick()- Overrides:
showSwoonTickin classAbstractPlant
-
offsetPos
public void offsetPos(double xOffset, double yOffset, double zOffset) -
savePartToPacket
public net.minecraft.nbt.CompoundTag savePartToPacket(boolean isTamed, boolean isBaby) -
loadFromTagList
public void loadFromTagList(net.minecraft.nbt.CompoundTag tag) -
displayInfo
public void displayInfo(net.minecraft.world.entity.player.Player player, List<AlmanacText> almanacTexts) - Specified by:
displayInfoin interfaceIAlmanacHoverInfo- Overrides:
displayInfoin classAbstractPlant
-