Class Crab
java.lang.Object
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.AgeableMob
net.minecraft.world.entity.animal.Animal
net.frozenblock.wilderwild.entity.Crab
- All Implemented Interfaces:
net.minecraft.network.syncher.SyncedDataHolder,net.minecraft.world.entity.animal.Bucketable,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.EquipmentUser,net.minecraft.world.entity.Leashable,net.minecraft.world.entity.Targeting,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.level.gameevent.vibrations.VibrationSystem,net.minecraft.world.Nameable,net.minecraft.world.scores.ScoreHolder
public class Crab
extends net.minecraft.world.entity.animal.Animal
implements net.minecraft.world.level.gameevent.vibrations.VibrationSystem, net.minecraft.world.entity.animal.Bucketable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic enumclassNested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
net.minecraft.world.entity.AgeableMob.AgeableMobGroupDataNested 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 interface net.minecraft.world.entity.Leashable
net.minecraft.world.entity.Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Ticker, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatfloatfloatstatic final intstatic final floatfinal net.minecraft.world.entity.AnimationStatestatic final intfinal net.minecraft.world.entity.AnimationStatefinal net.minecraft.world.entity.AnimationStatestatic final floatstatic final floatstatic final doublefloatfloatfloatnet.minecraft.world.phys.Vec3static final floatstatic final intstatic final intstatic final floatstatic final doublestatic final doubleFields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDINGFields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimerFields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, bodyArmorDropChance, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, 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, PRESERVE_ITEM_DROP_CHANCE_THRESHOLD, RANDOM_SPAWN_BONUS_ID, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, 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, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, 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, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from interface net.minecraft.world.entity.Leashable
LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DISTFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
DEFAULT_VIBRATION_FREQUENCY, RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) voidaiStep()protected net.minecraft.world.entity.ai.Brain.Provider<Crab> voidcalculateEntityAnimation(boolean includeHeight) booleanbooleanbooleancanTargetEntity(@Nullable net.minecraft.world.entity.Entity entity) static booleancheckCrabSpawnRules(@NotNull net.minecraft.world.entity.EntityType<Crab> type, @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull net.minecraft.world.entity.EntitySpawnReason spawnType, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random) booleancheckSpawnObstruction(@NotNull net.minecraft.world.level.LevelReader level) static voidstatic net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builderprotected @NotNull net.minecraft.world.entity.ai.navigation.PathNavigationcreateNavigation(@NotNull net.minecraft.world.level.Level level) protected voidcustomServerAiStep(net.minecraft.server.level.ServerLevel level) protected voiddefineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) booleandoHurtTarget(net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.Entity target) protected voiddoPush(@NotNull net.minecraft.world.entity.Entity entity) voidnet.minecraft.world.entity.SpawnGroupDatafinalizeSpawn(@NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull net.minecraft.world.DifficultyInstance difficulty, @NotNull net.minecraft.world.entity.EntitySpawnReason reason, @Nullable net.minecraft.world.entity.SpawnGroupData spawnData) @Nullable net.minecraft.world.phys.Vec3booleanprotected @Nullable net.minecraft.sounds.SoundEventint@NotNull net.minecraft.world.entity.ai.Brain<Crab> getBrain()@Nullable net.minecraft.world.entity.AgeableMobgetBreedOffspring(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.AgeableMob otherParent) @NotNull net.minecraft.world.item.ItemStack@Nullable net.minecraft.world.phys.Vec3getClosestPos(@NotNull List<net.minecraft.world.phys.Vec3> vec3s) static intgetCrabsPerLevel(@NotNull net.minecraft.server.level.ServerLevel level) protected @Nullable net.minecraft.sounds.SoundEvent@NotNull net.minecraft.world.phys.Vec3intdoubleprotected @Nullable net.minecraft.sounds.SoundEventgetHurtSound(@NotNull net.minecraft.world.damagesource.DamageSource damageSource) @NotNull net.minecraft.sounds.SoundEvent@Nullable net.minecraft.world.entity.LivingEntitynet.minecraft.world.level.gameevent.vibrations.VibrationSystem.Datanet.minecraft.world.level.gameevent.vibrations.VibrationSystem.UserfloatgetWalkTargetValue(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.LevelReader level) booleanhurtServer(net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) booleanignoreExplosion(net.minecraft.world.level.Explosion explosion) booleanbooleanbooleanbooleanbooleanisDitto()booleanisFood(@NotNull net.minecraft.world.item.ItemStack stack) booleanbooleanbooleanisInvulnerableTo(net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.damagesource.DamageSource source) booleanbooleanbooleanisWallPosSlowable(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.phys.shapes.VoxelShape collisionShape) booleanlatchOntoWall(double latchForce, boolean stopDownwardsMovement) voidloadFromBucketTag(@NotNull net.minecraft.nbt.CompoundTag tag) protected @NotNull net.minecraft.world.entity.ai.Brain<?> makeBrain(@NotNull com.mojang.serialization.Dynamic<?> dynamic) @NotNull net.minecraft.world.InteractionResultmobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) booleanvoidonSyncedDataUpdated(@NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key) voidvoidreadAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound) booleanremoveWhenFarAway(double distanceToClosestPlayer) booleanvoidvoidsaveToBucketTag(@NotNull net.minecraft.world.item.ItemStack stack) protected voidvoidsetClimbingFace(@NotNull net.minecraft.core.Direction direction) voidsetDiggingTicks(int i) voidsetFromBucket(boolean fromBucket) voidsetMoveState(@NotNull Crab.MoveState state) voidsetTargetClimbAnimAmount(float f) voidsetTargetClimbAnimX(float f) voidsetTargetClimbAnimY(float f) floatfloatfloatvoidtick()voidupdateDynamicGameEventListener(@NotNull BiConsumer<net.minecraft.world.level.gameevent.DynamicGameEventListener<?>, net.minecraft.server.level.ServerLevel> listenerConsumer) Methods inherited from class net.minecraft.world.entity.animal.Animal
actuallyHurt, canFallInLove, canMate, checkAnimalSpawnRules, createAnimalAttributes, finalizeSpawnChildFromBreeding, getBaseExperienceReward, getInLoveTime, getLoveCause, handleEntityEvent, isBrightEnoughToSpawn, isInLove, playEatingSound, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItemMethods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getForcedAge, getForcedAgeTimer, getSpeedUpSecondsWhenFeeding, isBaby, setAge, setBabyMethods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, handleLeashAtDistance, isPanicking, isPathFinding, shouldStayCloseToLeashHolderMethods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canDispenserEquipIntoSlot, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canUseSlot, checkDespawn, checkMobSpawnRules, clampHeadRotationToBody, clearRestriction, convertTo, convertTo, createBodyControl, createMobAttributes, dropCustomDeathLoot, dropFromLootTable, dropLeash, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getArmorAndBodyArmorSlots, getArmorDropChances, getArmorSlots, getAttackBoundingBox, getBodyArmorItem, getControllingPassenger, getEquipmentDropChance, getEquipmentForSlot, getHandDropChances, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getTargetFromBrain, hasRestriction, interact, isAggressive, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWearingBodyArmor, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInLiquid, leashTooFarBehaviour, lookAt, onAttributeUpdated, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAttackSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, restrictTo, serverAiStep, setAggressive, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, tickHeadTurn, updateControlFlags, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, calculateFallDamage, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, cancelLerp, canDisableShield, canEquipWithDispenser, canFreeze, canGlide, canGlideUsing, canStandOnFluid, canUsePortal, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, dropAllDeathLoot, dropEquipment, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultDimensions, getDefaultGravity, getDimensions, getDismountPoses, getEffect, getEffectiveGravity, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemBlockingWith, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayerTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSlotForHand, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isLookingAtMe, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makePoofParticles, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldShowName, skipDropExperience, spawnItemParticles, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTeleport, checkBelowWorld, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, 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, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, interactAt, is, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByClient, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCrouching, isCustomNameVisible, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInLiquid, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAboveBubbleCol, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemoval, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, refreshDimensions, registryAccess, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSoundMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.entity.EquipmentUser
equip, equip, equip, resolveSlotMethods inherited from interface net.minecraft.world.entity.Leashable
canHaveALeashAttachedToIt, elasticRangeLeashBehaviour, getLeashHolder, isLeashed, mayBeLeashed, readLeashData, setDelayedLeashHolderId, setLeashedTo, writeLeashDataMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
MAX_TARGET_DISTANCE
public static final float MAX_TARGET_DISTANCE- See Also:
-
MOVEMENT_SPEED
public static final double MOVEMENT_SPEED- See Also:
-
STEP_HEIGHT
public static final float STEP_HEIGHT- See Also:
-
WATER_MOVEMENT_SPEED
public static final double WATER_MOVEMENT_SPEED- See Also:
-
DIG_LENGTH_IN_TICKS
public static final int DIG_LENGTH_IN_TICKS- See Also:
-
EMERGE_LENGTH_IN_TICKS
public static final int EMERGE_LENGTH_IN_TICKS- See Also:
-
UNDERGROUND_PLAYER_RANGE
public static final double UNDERGROUND_PLAYER_RANGE- See Also:
-
DIGGING_PARTICLE_OFFSET
public static final float DIGGING_PARTICLE_OFFSET- See Also:
-
IDLE_SOUND_VOLUME_PERCENTAGE
public static final float IDLE_SOUND_VOLUME_PERCENTAGE- See Also:
-
RATTLE_SOUND_CHANCE
public static final float RATTLE_SOUND_CHANCE- See Also:
-
SPAWN_CHANCE
public static final int SPAWN_CHANCE- See Also:
-
SPAWN_CHANCE_COMMON
public static final int SPAWN_CHANCE_COMMON- See Also:
-
diggingAnimationState
public final net.minecraft.world.entity.AnimationState diggingAnimationState -
emergingAnimationState
public final net.minecraft.world.entity.AnimationState emergingAnimationState -
hidingAnimationState
public final net.minecraft.world.entity.AnimationState hidingAnimationState -
prevMovement
public net.minecraft.world.phys.Vec3 prevMovement -
cancelMovementToDescend
public boolean cancelMovementToDescend -
climbAnimX
public float climbAnimX -
prevClimbAnimX
public float prevClimbAnimX -
climbAnimY
public float climbAnimY -
prevClimbAnimY
public float prevClimbAnimY -
prevClimbDirectionAmount
public float prevClimbDirectionAmount -
climbDirectionAmount
public float climbDirectionAmount
-
-
Constructor Details
-
Crab
public Crab(net.minecraft.world.entity.EntityType<? extends Crab> entityType, net.minecraft.world.level.Level level)
-
-
Method Details
-
createAttributes
@NotNull public static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder createAttributes() -
clearLevelToCrabCount
public static void clearLevelToCrabCount() -
checkCrabSpawnRules
public static boolean checkCrabSpawnRules(@NotNull @NotNull net.minecraft.world.entity.EntityType<Crab> type, @NotNull @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull @NotNull net.minecraft.world.entity.EntitySpawnReason spawnType, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random) -
getCrabsPerLevel
public static int getCrabsPerLevel(@NotNull @NotNull net.minecraft.server.level.ServerLevel level) -
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
-
getBrain
- Overrides:
getBrainin classnet.minecraft.world.entity.LivingEntity
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPacketsin classnet.minecraft.world.entity.Mob
-
finalizeSpawn
public 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.EntitySpawnReason reason, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData spawnData) - Overrides:
finalizeSpawnin classnet.minecraft.world.entity.AgeableMob
-
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.animal.Animal
-
getTarget
@Nullable public @Nullable net.minecraft.world.entity.LivingEntity getTarget()- Specified by:
getTargetin interfacenet.minecraft.world.entity.Targeting- Overrides:
getTargetin classnet.minecraft.world.entity.Mob
-
isInvisible
public boolean isInvisible()- Overrides:
isInvisiblein classnet.minecraft.world.entity.Entity
-
defineSynchedData
protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) - Overrides:
defineSynchedDatain classnet.minecraft.world.entity.AgeableMob
-
checkSpawnObstruction
public boolean checkSpawnObstruction(@NotNull @NotNull net.minecraft.world.level.LevelReader level) - Overrides:
checkSpawnObstructionin classnet.minecraft.world.entity.Mob
-
aiStep
public void aiStep()- Overrides:
aiStepin classnet.minecraft.world.entity.animal.Animal
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.Mob
-
hurtServer
public boolean hurtServer(net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtServerin classnet.minecraft.world.entity.LivingEntity
-
customServerAiStep
protected void customServerAiStep(net.minecraft.server.level.ServerLevel level) - Overrides:
customServerAiStepin classnet.minecraft.world.entity.animal.Animal
-
getEmptyAreaSearchDistance
public double getEmptyAreaSearchDistance() -
findNearestWall
@Nullable public @Nullable net.minecraft.world.phys.Vec3 findNearestWall() -
getClosestPos
@Nullable public @Nullable net.minecraft.world.phys.Vec3 getClosestPos(@NotNull @NotNull List<net.minecraft.world.phys.Vec3> vec3s) -
isWallPosSlowable
public boolean isWallPosSlowable(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.phys.shapes.VoxelShape collisionShape) -
latchOntoWall
public boolean latchOntoWall(double latchForce, boolean stopDownwardsMovement) -
getHurtSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getHurtSound(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource) - Overrides:
getHurtSoundin classnet.minecraft.world.entity.LivingEntity
-
getDeathSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSoundin classnet.minecraft.world.entity.LivingEntity
-
getAmbientSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
getAmbientSoundInterval
public int getAmbientSoundInterval()- Overrides:
getAmbientSoundIntervalin classnet.minecraft.world.entity.animal.Animal
-
playAmbientSound
public void playAmbientSound()- Overrides:
playAmbientSoundin classnet.minecraft.world.entity.Mob
-
doHurtTarget
public boolean doHurtTarget(net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.Entity target) - Overrides:
doHurtTargetin classnet.minecraft.world.entity.Mob
-
isInvulnerableTo
public boolean isInvulnerableTo(net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.damagesource.DamageSource source) - Overrides:
isInvulnerableToin classnet.minecraft.world.entity.LivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classnet.minecraft.world.entity.LivingEntity
-
doPush
protected void doPush(@NotNull @NotNull net.minecraft.world.entity.Entity entity) - Overrides:
doPushin classnet.minecraft.world.entity.LivingEntity
-
isPushedByFluid
public boolean isPushedByFluid()- Overrides:
isPushedByFluidin classnet.minecraft.world.entity.Entity
-
ignoreExplosion
public boolean ignoreExplosion(net.minecraft.world.level.Explosion explosion) - Overrides:
ignoreExplosionin classnet.minecraft.world.entity.Entity
-
isDiggingOrEmerging
public boolean isDiggingOrEmerging() -
isHidingUnderground
public boolean isHidingUnderground() -
canTargetEntity
@Contract("null->false") public boolean canTargetEntity(@Nullable @Nullable net.minecraft.world.entity.Entity entity) -
canHideOnGround
public boolean canHideOnGround() -
canEmerge
public boolean canEmerge() -
getDeltaPos
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getDeltaPos() -
onSyncedDataUpdated
public void onSyncedDataUpdated(@NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key) - Specified by:
onSyncedDataUpdatedin interfacenet.minecraft.network.syncher.SyncedDataHolder- Overrides:
onSyncedDataUpdatedin classnet.minecraft.world.entity.AgeableMob
-
onClimbable
public boolean onClimbable()- Overrides:
onClimbablein classnet.minecraft.world.entity.LivingEntity
-
isDescending
public boolean isDescending()- Overrides:
isDescendingin classnet.minecraft.world.entity.Entity
-
moveState
-
isCrabClimbing
public boolean isCrabClimbing() -
isCrabDescending
public boolean isCrabDescending() -
setMoveState
-
getClimbingFace
-
setClimbingFace
public void setClimbingFace(@NotNull @NotNull net.minecraft.core.Direction direction) -
targetClimbAnimX
public float targetClimbAnimX() -
setTargetClimbAnimX
public void setTargetClimbAnimX(float f) -
targetClimbAnimY
public float targetClimbAnimY() -
setTargetClimbAnimY
public void setTargetClimbAnimY(float f) -
targetClimbAnimAmount
public float targetClimbAnimAmount() -
setTargetClimbAnimAmount
public void setTargetClimbAnimAmount(float f) -
getDiggingTicks
public int getDiggingTicks() -
setDiggingTicks
public void setDiggingTicks(int i) -
resetDiggingTicks
public void resetDiggingTicks() -
isFood
public boolean isFood(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
isFoodin classnet.minecraft.world.entity.animal.Animal
-
fromBucket
public boolean fromBucket()- Specified by:
fromBucketin interfacenet.minecraft.world.entity.animal.Bucketable
-
setFromBucket
public void setFromBucket(boolean fromBucket) - Specified by:
setFromBucketin interfacenet.minecraft.world.entity.animal.Bucketable
-
calculateEntityAnimation
public void calculateEntityAnimation(boolean includeHeight) - Overrides:
calculateEntityAnimationin classnet.minecraft.world.entity.LivingEntity
-
getBreedOffspring
@Nullable public @Nullable net.minecraft.world.entity.AgeableMob getBreedOffspring(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.AgeableMob otherParent) - Specified by:
getBreedOffspringin classnet.minecraft.world.entity.AgeableMob
-
mobInteract
@NotNull public @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.animal.Animal
-
saveToBucketTag
public void saveToBucketTag(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
saveToBucketTagin interfacenet.minecraft.world.entity.animal.Bucketable
-
loadFromBucketTag
public void loadFromBucketTag(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
loadFromBucketTagin interfacenet.minecraft.world.entity.animal.Bucketable
-
getBucketItemStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack getBucketItemStack()- Specified by:
getBucketItemStackin interfacenet.minecraft.world.entity.animal.Bucketable
-
getPickupSound
@NotNull public @NotNull net.minecraft.sounds.SoundEvent getPickupSound()- Specified by:
getPickupSoundin interfacenet.minecraft.world.entity.animal.Bucketable
-
requiresCustomPersistence
public boolean requiresCustomPersistence()- Overrides:
requiresCustomPersistencein classnet.minecraft.world.entity.Mob
-
removeWhenFarAway
public boolean removeWhenFarAway(double distanceToClosestPlayer) - Overrides:
removeWhenFarAwayin classnet.minecraft.world.entity.animal.Animal
-
isDitto
public boolean isDitto() -
addAdditionalSaveData
public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.animal.Animal
-
readAdditionalSaveData
public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.animal.Animal
-
getVibrationData
@NotNull public net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data getVibrationData()- Specified by:
getVibrationDatain interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
getVibrationUser
@NotNull public net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User getVibrationUser()- Specified by:
getVibrationUserin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
updateDynamicGameEventListener
public void updateDynamicGameEventListener(@NotNull @NotNull BiConsumer<net.minecraft.world.level.gameevent.DynamicGameEventListener<?>, net.minecraft.server.level.ServerLevel> listenerConsumer) - Overrides:
updateDynamicGameEventListenerin classnet.minecraft.world.entity.Entity
-