Class Firefly
java.lang.Object
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.frozenblock.wilderwild.entity.Firefly
- All Implemented Interfaces:
net.minecraft.commands.CommandSource,net.minecraft.world.entity.animal.FlyingAnimal,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.Targeting,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.Nameable
public class Firefly
extends net.minecraft.world.entity.PathfinderMob
implements net.minecraft.world.entity.animal.FlyingAnimal
-
Nested Class Summary
Nested ClassesNested 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.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final intbooleanintprotected static final List<net.minecraft.world.entity.ai.memory.MemoryModuleType<?>> booleanstatic final intprotected static final List<net.minecraft.world.entity.ai.sensing.SensorType<? extends net.minecraft.world.entity.ai.sensing.Sensor<? super Firefly>>> booleanstatic final intbooleanFields 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, 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, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) protected net.minecraft.world.entity.ai.Brain.Provider<Firefly> booleancanBeLeashed(@NotNull net.minecraft.world.entity.player.Player player) booleanbooleancanTakeItem(@NotNull net.minecraft.world.item.ItemStack stack) booleancauseFallDamage(float fallDistance, float damageMultiplier, @NotNull net.minecraft.world.damagesource.DamageSource source) voidprotected voidcheckFallDamage(double heightDifference, boolean onGround, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.BlockPos landedPosition) static booleancheckFireflySpawnRules(@NotNull net.minecraft.world.entity.EntityType<Firefly> type, @NotNull net.minecraft.world.level.LevelAccessor level, net.minecraft.world.entity.MobSpawnType spawnType, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random) static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builderprotected @NotNull net.minecraft.world.entity.ai.navigation.PathNavigationcreateNavigation(@NotNull net.minecraft.world.level.Level level) protected voidbooleanintdecreaseAirSupply(int currentAir) protected voidprotected voiddoPush(@NotNull net.minecraft.world.entity.Entity entity) @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 spawnType, @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag) booleanflickers()protected net.minecraft.sounds.SoundEventfloat@NotNull net.minecraft.world.entity.ai.Brain<Firefly> getBrain()getColor()protected net.minecraft.sounds.SoundEventintprotected net.minecraft.sounds.SoundEventgetHurtSound(@NotNull net.minecraft.world.damagesource.DamageSource source) floatfloatgetWalkTargetValue(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.LevelReader level) booleanbooleanisFlying()booleanstatic booleanisValidHomePos(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) protected @NotNull net.minecraft.world.entity.ai.Brain<?> makeBrain(@NotNull com.mojang.serialization.Dynamic<?> dynamic) protected @NotNull net.minecraft.world.InteractionResultmobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) protected voidplayStepSound(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) protected voidvoidreadAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) booleanremoveWhenFarAway(double distanceToClosestPlayer) booleanprotected voidvoidsetAnimScale(float value) voidsetColor(@NotNull FireflyColor color) voidsetFlickerAge(int value) voidsetFlickers(boolean value) voidsetFromBottle(boolean value) voidsetPrevAnimScale(float value) booleanbooleanshouldRender(double x, double y, double z) protected booleanvoidtick()voidtravel(@NotNull net.minecraft.world.phys.Vec3 travelVector) @NotNull Optional<net.minecraft.world.InteractionResult> tryCapture(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeashMethods inherited from class net.minecraft.world.entity.Mob
aiStep, ate, baseTick, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, restrictTo, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, die, doAutoAttackOnTouch, doesEmitEquipEvent, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, playBlockFallSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumedMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canSprint, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, 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, getTeam, 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, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, 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, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, 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, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSoundMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
-
Field Details
-
FLICKERS_CHANCE
public static final int FLICKERS_CHANCE- See Also:
-
RANDOM_FLICKER_AGE_MAX
public static final int RANDOM_FLICKER_AGE_MAX- See Also:
-
SPAWN_CHANCE
public static final int SPAWN_CHANCE- See Also:
-
SENSORS
-
MEMORY_MODULES
protected static final List<net.minecraft.world.entity.ai.memory.MemoryModuleType<?>> MEMORY_MODULES -
natural
public boolean natural -
hasHome
public boolean hasHome -
despawning
public boolean despawning -
homeCheckCooldown
public int homeCheckCooldown -
wasNamedNectar
public boolean wasNamedNectar -
shouldCheckSpawn
public boolean shouldCheckSpawn
-
-
Constructor Details
-
Firefly
public Firefly(@NotNull @NotNull net.minecraft.world.entity.EntityType<? extends Firefly> entityType, @NotNull @NotNull net.minecraft.world.level.Level level)
-
-
Method Details
-
checkFireflySpawnRules
public static boolean checkFireflySpawnRules(@NotNull @NotNull net.minecraft.world.entity.EntityType<Firefly> type, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, net.minecraft.world.entity.MobSpawnType spawnType, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random) -
createAttributes
@NotNull public static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder createAttributes() -
isValidHomePos
public static boolean isValidHomePos(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
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 spawnType, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag) - Overrides:
finalizeSpawnin classnet.minecraft.world.entity.Mob
-
decreaseAirSupply
public int decreaseAirSupply(int currentAir) - Overrides:
decreaseAirSupplyin classnet.minecraft.world.entity.LivingEntity
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classnet.minecraft.world.entity.Mob
-
dampensVibrations
public boolean dampensVibrations()- Overrides:
dampensVibrationsin 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
-
tryCapture
@NotNull public @NotNull Optional<net.minecraft.world.InteractionResult> tryCapture(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand) -
shouldRender
public boolean shouldRender(double x, double y, double z) - Overrides:
shouldRenderin classnet.minecraft.world.entity.Entity
-
canBeLeashed
public boolean canBeLeashed(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Overrides:
canBeLeashedin classnet.minecraft.world.entity.Mob
-
brainProvider
- Overrides:
brainProviderin classnet.minecraft.world.entity.LivingEntity
-
makeBrain
@NotNull protected @NotNull net.minecraft.world.entity.ai.Brain<?> makeBrain(@NotNull @NotNull com.mojang.serialization.Dynamic<?> dynamic) - Overrides:
makeBrainin classnet.minecraft.world.entity.LivingEntity
-
isFromBottle
public boolean isFromBottle() -
setFromBottle
public void setFromBottle(boolean value) -
flickers
public boolean flickers() -
setFlickers
public void setFlickers(boolean value) -
getFlickerAge
public int getFlickerAge() -
setFlickerAge
public void setFlickerAge(int value) -
getAnimScale
public float getAnimScale() -
setAnimScale
public void setAnimScale(float value) -
getPrevAnimScale
public float getPrevAnimScale() -
setPrevAnimScale
public void setPrevAnimScale(float value) -
getColor
-
setColor
-
requiresCustomPersistence
public boolean requiresCustomPersistence()- Overrides:
requiresCustomPersistencein classnet.minecraft.world.entity.Mob
-
getWalkTargetValue
public float getWalkTargetValue(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.LevelReader level) - Overrides:
getWalkTargetValuein classnet.minecraft.world.entity.PathfinderMob
-
getBrain
- Overrides:
getBrainin classnet.minecraft.world.entity.LivingEntity
-
isFlying
public boolean isFlying()- Specified by:
isFlyingin interfacenet.minecraft.world.entity.animal.FlyingAnimal
-
shouldHide
public boolean shouldHide() -
travel
public void travel(@NotNull @NotNull net.minecraft.world.phys.Vec3 travelVector) - Overrides:
travelin classnet.minecraft.world.entity.LivingEntity
-
playStepSound
protected void playStepSound(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
playStepSoundin classnet.minecraft.world.entity.Entity
-
checkFallDamage
protected void checkFallDamage(double heightDifference, boolean onGround, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.BlockPos landedPosition) - Overrides:
checkFallDamagein classnet.minecraft.world.entity.LivingEntity
-
getAmbientSound
protected net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
getHurtSound
protected net.minecraft.sounds.SoundEvent getHurtSound(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source) - Overrides:
getHurtSoundin classnet.minecraft.world.entity.LivingEntity
-
getDeathSound
protected net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSoundin classnet.minecraft.world.entity.LivingEntity
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.Mob
-
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStepin classnet.minecraft.world.entity.Mob
-
canTakeItem
public boolean canTakeItem(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
canTakeItemin classnet.minecraft.world.entity.Mob
-
isFlapping
public boolean isFlapping()- Overrides:
isFlappingin classnet.minecraft.world.entity.Entity
-
removeWhenFarAway
public boolean removeWhenFarAway(double distanceToClosestPlayer) - Overrides:
removeWhenFarAwayin classnet.minecraft.world.entity.Mob
-
checkDespawn
public void checkDespawn()- Overrides:
checkDespawnin classnet.minecraft.world.entity.Mob
-
addAdditionalSaveData
public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
readAdditionalSaveData
public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
shouldStayCloseToLeashHolder
protected boolean shouldStayCloseToLeashHolder()- Overrides:
shouldStayCloseToLeashHolderin classnet.minecraft.world.entity.PathfinderMob
-
canDisableShield
public boolean canDisableShield()- Overrides:
canDisableShieldin classnet.minecraft.world.entity.LivingEntity
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPacketsin classnet.minecraft.world.entity.Mob
-
causeFallDamage
public boolean causeFallDamage(float fallDistance, float damageMultiplier, @NotNull @NotNull net.minecraft.world.damagesource.DamageSource source) - Overrides:
causeFallDamagein classnet.minecraft.world.entity.LivingEntity
-
doPush
protected void doPush(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
doPushin classnet.minecraft.world.entity.LivingEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntitiesin classnet.minecraft.world.entity.LivingEntity
-