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.commands.CommandSource,net.minecraft.world.entity.animal.Bucketable,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.Targeting,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.level.gameevent.vibrations.VibrationSystem,net.minecraft.world.Nameable
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.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, 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
NULLFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
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) booleanbooleanbooleanbooleancanTargetEntity(@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.MobSpawnType 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 voidprotected voidbooleandoHurtTarget(@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.MobSpawnType reason, @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag) @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.world.entity.MobType@NotNull net.minecraft.sounds.SoundEventprotected floatgetStandingEyeHeight(@NotNull net.minecraft.world.entity.Pose pose, @NotNull net.minecraft.world.entity.EntityDimensions dimensions) @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) booleanhurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount) booleanbooleanbooleanbooleanbooleanbooleanisDitto()booleanisFood(@NotNull net.minecraft.world.item.ItemStack stack) booleanbooleanbooleanisInvulnerableTo(@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) booleannoBlockCollision(net.minecraft.world.phys.AABB collisionBox) 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) voidfloatfloatfloatvoidtick()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
canFallInLove, canMate, checkAnimalSpawnRules, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, handleEntityEvent, isBrightEnoughToSpawn, isInLove, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItemMethods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, setAge, setBabyMethods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeashMethods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, clearRestriction, convertTo, createBodyControl, createMobAttributes, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, restrictTo, serverAiStep, setAggressive, 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, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, 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, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, 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, travel, 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, dampensVibrations, 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, 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, interactAt, is, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInvisibleTo, isInvulnerable, 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, 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, playStepSound, 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, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, 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.commands.CommandSource
alwaysAccepts
-
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.MobSpawnType 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.MobSpawnType reason, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag) - 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()- Overrides:
defineSynchedDatain classnet.minecraft.world.entity.AgeableMob
-
canBreatheUnderwater
public boolean canBreatheUnderwater()- Overrides:
canBreatheUnderwaterin classnet.minecraft.world.entity.LivingEntity
-
getMobType
@NotNull public @NotNull net.minecraft.world.entity.MobType getMobType()- Overrides:
getMobTypein classnet.minecraft.world.entity.LivingEntity
-
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
-
hurt
public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classnet.minecraft.world.entity.animal.Animal
-
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStepin classnet.minecraft.world.entity.animal.Animal
-
noBlockCollision
public boolean noBlockCollision(net.minecraft.world.phys.AABB collisionBox) -
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(@NotNull @NotNull net.minecraft.world.entity.Entity target) - Overrides:
doHurtTargetin classnet.minecraft.world.entity.Mob
-
isInvulnerableTo
public boolean isInvulnerableTo(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source) - Overrides:
isInvulnerableToin classnet.minecraft.world.entity.Entity
-
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()- 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) - 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() -
stopInPlace
public void stopInPlace() -
isFood
public boolean isFood(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
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
-
getStandingEyeHeight
protected float getStandingEyeHeight(@NotNull @NotNull net.minecraft.world.entity.Pose pose, @NotNull @NotNull net.minecraft.world.entity.EntityDimensions dimensions) - Overrides:
getStandingEyeHeightin 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
-