Class RabbitEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,DataTracked,EquipmentHolder,Leashable,Targeter,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/RabbitEntityintermediary net/minecraft/class_1463official ckv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classRabbitEntity.FleeGoal<T extends LivingEntity>static classstatic classprivate static classstatic enumNested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveDataNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final doublestatic final doublestatic final doublestatic final doubleprivate static final intprivate static final intprivate static final intprivate static final intprivate intprivate intprivate static final Identifierprivate static final Identifierprivate booleanstatic final double(package private) intprivate intprivate static final TrackedData<Integer> Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWNFields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, DEFAULT_AGE, DEFAULT_FORCED_AGE, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, experiencePoints, field_35039, goalSelector, jumpControl, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTHFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected voidcreateChild(ServerWorld serverWorld, PassiveEntity passiveEntity) private voidprivate voidprivate void<T> Tget(ComponentType<? extends T> type) protected SoundEventprotected SoundEventprotected SoundEventgetHurtSound(DamageSource source) floatgetJumpProgress(float tickProgress) protected SoundEventprotected floatReturns the offset from the entity's position where the leash is attached to.Returns the sound category for sounds from this entity.private static RabbitEntity.VariantgetVariantFromPos(WorldAccess world, BlockPos pos) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected voidinitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) booleanisBreedingItem(ItemStack stack) voidjump()private voidlookTowards(double x, double z) voidmobTick(ServerWorld world) voidvoidReads custom data fromnbt.private voidprotected <T> booleansetApplicableComponent(ComponentType<T> type, T value) voidsetJumping(boolean jumping) voidsetSpeed(double speed) private voidsetVariant(RabbitEntity.Variant variant) booleanvoidvoid(package private) booleanvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, canImmediatelyDespawn, createAnimalAttributes, eat, getExperienceToDrop, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, interactMob, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, playEatSound, resetLoveTicks, setLoveTicksMethods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, getForcedAge, getHappyTicksRemaining, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, breakLongLeash, canActVoluntarily, canBeLeashed, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, createNavigation, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasPositionTarget, hasSaddleEquipped, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
field_30356
public static final double field_30356- See Also:
- Mappings:
Namespace Name Mixin selector named field_30356Lnet/minecraft/entity/passive/RabbitEntity;field_30356:Dintermediary field_30356Lnet/minecraft/class_1463;field_30356:Dofficial bILckv;bI:D
-
field_30357
public static final double field_30357- See Also:
- Mappings:
Namespace Name Mixin selector named field_30357Lnet/minecraft/entity/passive/RabbitEntity;field_30357:Dintermediary field_30357Lnet/minecraft/class_1463;field_30357:Dofficial bJLckv;bJ:D
-
field_30358
public static final double field_30358- See Also:
- Mappings:
Namespace Name Mixin selector named field_30358Lnet/minecraft/entity/passive/RabbitEntity;field_30358:Dintermediary field_30358Lnet/minecraft/class_1463;field_30358:Dofficial bKLckv;bK:D
-
ESCAPE_DANGER_SPEED
public static final double ESCAPE_DANGER_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named ESCAPE_DANGER_SPEEDLnet/minecraft/entity/passive/RabbitEntity;ESCAPE_DANGER_SPEED:Dintermediary field_30359Lnet/minecraft/class_1463;field_30359:Dofficial bMLckv;bM:D
-
MELEE_ATTACK_SPEED
public static final double MELEE_ATTACK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named MELEE_ATTACK_SPEEDLnet/minecraft/entity/passive/RabbitEntity;MELEE_ATTACK_SPEED:Dintermediary field_30360Lnet/minecraft/class_1463;field_30360:Dofficial bNLckv;bN:D
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANTLnet/minecraft/entity/passive/RabbitEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;intermediary field_6852Lnet/minecraft/class_1463;field_6852:Lnet/minecraft/class_2940;official bOLckv;bO:Laku;
-
DEFAULT_MORE_CARROT_TICKS
private static final int DEFAULT_MORE_CARROT_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_MORE_CARROT_TICKSLnet/minecraft/entity/passive/RabbitEntity;DEFAULT_MORE_CARROT_TICKS:Iintermediary field_57616Lnet/minecraft/class_1463;field_57616:Iofficial bPLckv;bP:I
-
KILLER_BUNNY
- Mappings:
Namespace Name Mixin selector named KILLER_BUNNYLnet/minecraft/entity/passive/RabbitEntity;KILLER_BUNNY:Lnet/minecraft/util/Identifier;intermediary field_6846Lnet/minecraft/class_1463;field_6846:Lnet/minecraft/class_2960;official bQLckv;bQ:Lalr;
-
field_51585
private static final int field_51585- See Also:
- Mappings:
Namespace Name Mixin selector named field_51585Lnet/minecraft/entity/passive/RabbitEntity;field_51585:Iintermediary field_51585Lnet/minecraft/class_1463;field_51585:Iofficial bRLckv;bR:I
-
field_51586
private static final int field_51586- See Also:
- Mappings:
Namespace Name Mixin selector named field_51586Lnet/minecraft/entity/passive/RabbitEntity;field_51586:Iintermediary field_51586Lnet/minecraft/class_1463;field_51586:Iofficial bSLckv;bS:I
-
KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_ID
- Mappings:
Namespace Name Mixin selector named KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_IDLnet/minecraft/entity/passive/RabbitEntity;KILLER_BUNNY_ATTACK_DAMAGE_MODIFIER_ID:Lnet/minecraft/util/Identifier;intermediary field_51587Lnet/minecraft/class_1463;field_51587:Lnet/minecraft/class_2960;official bTLckv;bT:Lalr;
-
field_30369
private static final int field_30369- See Also:
- Mappings:
Namespace Name Mixin selector named field_30369Lnet/minecraft/entity/passive/RabbitEntity;field_30369:Iintermediary field_30369Lnet/minecraft/class_1463;field_30369:Iofficial bULckv;bU:I
-
field_30370
private static final int field_30370- See Also:
- Mappings:
Namespace Name Mixin selector named field_30370Lnet/minecraft/entity/passive/RabbitEntity;field_30370:Iintermediary field_30370Lnet/minecraft/class_1463;field_30370:Iofficial bVLckv;bV:I
-
jumpTicks
private int jumpTicks- Mappings:
Namespace Name Mixin selector named jumpTicksLnet/minecraft/entity/passive/RabbitEntity;jumpTicks:Iintermediary field_6851Lnet/minecraft/class_1463;field_6851:Iofficial bWLckv;bW:I
-
jumpDuration
private int jumpDuration- Mappings:
Namespace Name Mixin selector named jumpDurationLnet/minecraft/entity/passive/RabbitEntity;jumpDuration:Iintermediary field_6849Lnet/minecraft/class_1463;field_6849:Iofficial bXLckv;bX:I
-
lastOnGround
private boolean lastOnGround- Mappings:
Namespace Name Mixin selector named lastOnGroundLnet/minecraft/entity/passive/RabbitEntity;lastOnGround:Zintermediary field_6850Lnet/minecraft/class_1463;field_6850:Zofficial bYLckv;bY:Z
-
ticksUntilJump
private int ticksUntilJump- Mappings:
Namespace Name Mixin selector named ticksUntilJumpLnet/minecraft/entity/passive/RabbitEntity;ticksUntilJump:Iintermediary field_6848Lnet/minecraft/class_1463;field_6848:Iofficial bZLckv;bZ:I
-
moreCarrotTicks
int moreCarrotTicks- Mappings:
Namespace Name Mixin selector named moreCarrotTicksLnet/minecraft/entity/passive/RabbitEntity;moreCarrotTicks:Iintermediary field_6847Lnet/minecraft/class_1463;field_6847:Iofficial caLckv;ca:I
-
-
Constructor Details
-
RabbitEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
getJumpVelocity
protected float getJumpVelocity()- Overrides:
getJumpVelocityin classLivingEntity- Mappings:
Namespace Name Mixin selector named getJumpVelocityLnet/minecraft/entity/LivingEntity;getJumpVelocity()Fintermediary method_6106Lnet/minecraft/class_1309;method_6106()Fofficial fhLbyf;fh()F
-
jump
public void jump()- Overrides:
jumpin classLivingEntity- Mappings:
Namespace Name Mixin selector named jumpLnet/minecraft/entity/LivingEntity;jump()Vintermediary method_6043Lnet/minecraft/class_1309;method_6043()Vofficial rLbyf;r()V
-
getJumpProgress
public float getJumpProgress(float tickProgress) - Mappings:
Namespace Name Mixin selector named getJumpProgressLnet/minecraft/entity/passive/RabbitEntity;getJumpProgress(F)Fintermediary method_6605Lnet/minecraft/class_1463;method_6605(F)Fofficial JLckv;J(F)F
-
setSpeed
public void setSpeed(double speed) - Mappings:
Namespace Name Mixin selector named setSpeedLnet/minecraft/entity/passive/RabbitEntity;setSpeed(D)Vintermediary method_6606Lnet/minecraft/class_1463;method_6606(D)Vofficial iLckv;i(D)V
-
setJumping
public void setJumping(boolean jumping) - Overrides:
setJumpingin classLivingEntity- Mappings:
Namespace Name Mixin selector named setJumpingLnet/minecraft/entity/LivingEntity;setJumping(Z)Vintermediary method_6100Lnet/minecraft/class_1309;method_6100(Z)Vofficial sLbyf;s(Z)V
-
startJump
public void startJump()- Mappings:
Namespace Name Mixin selector named startJumpLnet/minecraft/entity/passive/RabbitEntity;startJump()Vintermediary method_6618Lnet/minecraft/class_1463;method_6618()Vofficial mLckv;m()V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classPassiveEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbxe;a(Laky$a;)V
-
mobTick
- Overrides:
mobTickin classAnimalEntity- Mappings:
Namespace Name Mixin selector named mobTickLnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_5958Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)Vofficial aLbyh;a(Lasb;)V
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Overrides:
shouldSpawnSprintingParticlesin classEntity- Mappings:
Namespace Name Mixin selector named shouldSpawnSprintingParticlesLnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Zintermediary method_27298Lnet/minecraft/class_1297;method_27298()Zofficial btLbxe;bt()Z
-
lookTowards
private void lookTowards(double x, double z) - Mappings:
Namespace Name Mixin selector named lookTowardsLnet/minecraft/entity/passive/RabbitEntity;lookTowards(DD)Vintermediary method_6616Lnet/minecraft/class_1463;method_6616(DD)Vofficial cLckv;c(DD)V
-
enableJump
private void enableJump()- Mappings:
Namespace Name Mixin selector named enableJumpLnet/minecraft/entity/passive/RabbitEntity;enableJump()Vintermediary method_6611Lnet/minecraft/class_1463;method_6611()Vofficial gvLckv;gv()V
-
disableJump
private void disableJump()- Mappings:
Namespace Name Mixin selector named disableJumpLnet/minecraft/entity/passive/RabbitEntity;disableJump()Vintermediary method_6621Lnet/minecraft/class_1463;method_6621()Vofficial gwLckv;gw()V
-
doScheduleJump
private void doScheduleJump()- Mappings:
Namespace Name Mixin selector named doScheduleJumpLnet/minecraft/entity/passive/RabbitEntity;doScheduleJump()Vintermediary method_6608Lnet/minecraft/class_1463;method_6608()Vofficial gxLckv;gx()V
-
scheduleJump
private void scheduleJump()- Mappings:
Namespace Name Mixin selector named scheduleJumpLnet/minecraft/entity/passive/RabbitEntity;scheduleJump()Vintermediary method_6619Lnet/minecraft/class_1463;method_6619()Vofficial gyLckv;gy()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAnimalEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial d_Lbyf;d_()V
-
createRabbitAttributes
- Mappings:
Namespace Name Mixin selector named createRabbitAttributesLnet/minecraft/entity/passive/RabbitEntity;createRabbitAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26892Lnet/minecraft/class_1463;method_26892()Lnet/minecraft/class_5132$class_5133;official pLckv;p()Lbzk$a;
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbtin classAnimalEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbxe;b(Lua;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classAnimalEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbxe;a(Lua;)V
-
getJumpSound
- Mappings:
Namespace Name Mixin selector named getJumpSoundLnet/minecraft/entity/passive/RabbitEntity;getJumpSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6615Lnet/minecraft/class_1463;method_6615()Lnet/minecraft/class_3414;official uLckv;u()Lawx;
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official sLbyh;s()Lawx;
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official eLbyf;e(Lbvt;)Lawx;
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official j_Lbyf;j_()Lawx;
-
playAttackSound
public void playAttackSound()- Overrides:
playAttackSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named playAttackSoundLnet/minecraft/entity/mob/MobEntity;playAttackSound()Vintermediary method_59928Lnet/minecraft/class_1308;method_59928()Vofficial gnLbyh;gn()V
-
getSoundCategory
Returns the sound category for sounds from this entity.This is used by
Entity.playSound(SoundEvent, float, float)and defaults toSoundCategory.NEUTRAL. Hostile entities should override this to returnSoundCategory.HOSTILE.- Overrides:
getSoundCategoryin classEntity- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;official dmLbxe;dm()Lawz;
-
createChild
@Nullable public @Nullable RabbitEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChildin classPassiveEntity- Mappings:
Namespace Name Mixin selector named createChildLnet/minecraft/entity/passive/RabbitEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/RabbitEntity;intermediary method_6620Lnet/minecraft/class_1463;method_6620(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1463;official bLckv;b(Lasb;Lbwu;)Lckv;
-
isBreedingItem
- Specified by:
isBreedingItemin classAnimalEntity- Mappings:
Namespace Name Mixin selector named isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_6481Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Zofficial iLcjv;i(Ldak;)Z
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariantLnet/minecraft/entity/passive/RabbitEntity;getVariant()Lnet/minecraft/entity/passive/RabbitEntity$Variant;intermediary method_47855Lnet/minecraft/class_1463;method_47855()Lnet/minecraft/class_1463$class_7990;official guLckv;gu()Lckv$g;
-
setVariant
- Mappings:
Namespace Name Mixin selector named setVariantLnet/minecraft/entity/passive/RabbitEntity;setVariant(Lnet/minecraft/entity/passive/RabbitEntity$Variant;)Vintermediary method_47853Lnet/minecraft/class_1463;method_47853(Lnet/minecraft/class_1463$class_7990;)Vofficial aLckv;a(Lckv$g;)V
-
get
- Specified by:
getin interfaceComponentsAccess- Overrides:
getin classEntity- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_58694Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkg;a(Lkk;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFromin classEntity- Mappings:
Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_66649Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)Vofficial aLbxe;a(Lkg;)V
-
setApplicableComponent
- Overrides:
setApplicableComponentin classEntity- Mappings:
Namespace Name Mixin selector named setApplicableComponentLnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Zintermediary method_66654Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Zofficial bLbxe;b(Lkk;Ljava/lang/Object;)Z
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initializein classPassiveEntity- Mappings:
Namespace Name Mixin selector named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;official aLbyh;a(Ldla;Lbva;Lbxm;Lbyx;)Lbyx;
-
getVariantFromPos
- Mappings:
Namespace Name Mixin selector named getVariantFromPosLnet/minecraft/entity/passive/RabbitEntity;getVariantFromPos(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/passive/RabbitEntity$Variant;intermediary method_47854Lnet/minecraft/class_1463;method_47854(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1463$class_7990;official aLckv;a(Ldkk;Liw;)Lckv$g;
-
canSpawn
public static boolean canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawnLnet/minecraft/entity/passive/RabbitEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Zintermediary method_20669Lnet/minecraft/class_1463;method_20669(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Zofficial cLckv;c(Lbxn;Ldkk;Lbxm;Liw;Lbai;)Z
-
wantsCarrots
boolean wantsCarrots()- Mappings:
Namespace Name Mixin selector named wantsCarrotsLnet/minecraft/entity/passive/RabbitEntity;wantsCarrots()Zintermediary method_6607Lnet/minecraft/class_1463;method_6607()Zofficial gGLckv;gG()Z
-
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatusin classAnimalEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLbxe;b(B)V
-
getLeashOffset
Returns the offset from the entity's position where the leash is attached to.This is different from
Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.- Overrides:
getLeashOffsetin classEntity- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffsetLnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;intermediary method_29919Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;official cTLbxe;cT()Lfgc;
-