Class RabbitEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,Targeter
,VariantHolder<RabbitEntity.RabbitType>
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/passive/RabbitEntity
intermediary net/minecraft/class_1463
official cgb
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
RabbitEntity.FleeGoal<T extends LivingEntity>
static class
static class
private static class
static enum
Nested classes/interfaces inherited from class net.minecraft.entity.passive.PassiveEntity
PassiveEntity.PassiveData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
static final double
static final double
static final int
static final int
private static final int
private int
private int
private static final Identifier
private boolean
static final double
(package private) int
private static final TrackedData
<Integer> private int
Fields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWN
Fields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemaining
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canSpawn
(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) private void
private void
private void
protected SoundEvent
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) float
getJumpProgress
(float delta) protected SoundEvent
protected float
Returns 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.RabbitType
getTypeFromPos
(WorldAccess world, BlockPos pos) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected void
initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) boolean
isBreedingItem
(ItemStack stack) protected void
jump()
private void
lookTowards
(double x, double z) void
mobTick()
void
Reads custom data fromnbt
.private void
void
setJumping
(boolean jumping) void
setSpeed
(double speed) void
setVariant
(RabbitEntity.RabbitType rabbitType) boolean
void
void
boolean
(package private) boolean
void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
applyDamage, breed, breed, canBreedWith, canEat, canImmediatelyDespawn, eat, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, interactMob, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, resetLoveTicks, setLoveTicks
Methods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAge
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, shouldFollowLeash, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, hasArmorSlot, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mightBeLeashed, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getFallSounds, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRandom, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lerpHeadYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldDropXp, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, 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, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerNearestTo, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods 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_30356
Lnet/minecraft/entity/passive/RabbitEntity;field_30356:D
intermediary field_30356
Lnet/minecraft/class_1463;field_30356:D
official bY
Lcgb;bY:D
-
field_30357
public static final double field_30357- See Also:
- Mappings:
Namespace Name Mixin selector named field_30357
Lnet/minecraft/entity/passive/RabbitEntity;field_30357:D
intermediary field_30357
Lnet/minecraft/class_1463;field_30357:D
official bZ
Lcgb;bZ:D
-
field_30358
public static final double field_30358- See Also:
- Mappings:
Namespace Name Mixin selector named field_30358
Lnet/minecraft/entity/passive/RabbitEntity;field_30358:D
intermediary field_30358
Lnet/minecraft/class_1463;field_30358:D
official cb
Lcgb;cb:D
-
ESCAPE_DANGER_SPEED
public static final double ESCAPE_DANGER_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named ESCAPE_DANGER_SPEED
Lnet/minecraft/entity/passive/RabbitEntity;ESCAPE_DANGER_SPEED:D
intermediary field_30359
Lnet/minecraft/class_1463;field_30359:D
official cc
Lcgb;cc:D
-
MELEE_ATTACK_SPEED
public static final double MELEE_ATTACK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named MELEE_ATTACK_SPEED
Lnet/minecraft/entity/passive/RabbitEntity;MELEE_ATTACK_SPEED:D
intermediary field_30360
Lnet/minecraft/class_1463;field_30360:D
official cd
Lcgb;cd:D
-
RABBIT_TYPE
- Mappings:
Namespace Name Mixin selector named RABBIT_TYPE
Lnet/minecraft/entity/passive/RabbitEntity;RABBIT_TYPE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6852
Lnet/minecraft/class_1463;field_6852:Lnet/minecraft/class_2940;
official cg
Lcgb;cg:Lakk;
-
KILLER_BUNNY
- Mappings:
Namespace Name Mixin selector named KILLER_BUNNY
Lnet/minecraft/entity/passive/RabbitEntity;KILLER_BUNNY:Lnet/minecraft/util/Identifier;
intermediary field_6846
Lnet/minecraft/class_1463;field_6846:Lnet/minecraft/class_2960;
official ch
Lcgb;ch:Lalf;
-
field_30368
public static final int field_30368- See Also:
- Mappings:
Namespace Name Mixin selector named field_30368
Lnet/minecraft/entity/passive/RabbitEntity;field_30368:I
intermediary field_30368
Lnet/minecraft/class_1463;field_30368:I
official ce
Lcgb;ce:I
-
field_30369
public static final int field_30369- See Also:
- Mappings:
Namespace Name Mixin selector named field_30369
Lnet/minecraft/entity/passive/RabbitEntity;field_30369:I
intermediary field_30369
Lnet/minecraft/class_1463;field_30369:I
official cf
Lcgb;cf:I
-
field_30370
private static final int field_30370- See Also:
- Mappings:
Namespace Name Mixin selector named field_30370
Lnet/minecraft/entity/passive/RabbitEntity;field_30370:I
intermediary field_30370
Lnet/minecraft/class_1463;field_30370:I
official ci
Lcgb;ci:I
-
jumpTicks
private int jumpTicks- Mappings:
Namespace Name Mixin selector named jumpTicks
Lnet/minecraft/entity/passive/RabbitEntity;jumpTicks:I
intermediary field_6851
Lnet/minecraft/class_1463;field_6851:I
official cj
Lcgb;cj:I
-
jumpDuration
private int jumpDuration- Mappings:
Namespace Name Mixin selector named jumpDuration
Lnet/minecraft/entity/passive/RabbitEntity;jumpDuration:I
intermediary field_6849
Lnet/minecraft/class_1463;field_6849:I
official ck
Lcgb;ck:I
-
lastOnGround
private boolean lastOnGround- Mappings:
Namespace Name Mixin selector named lastOnGround
Lnet/minecraft/entity/passive/RabbitEntity;lastOnGround:Z
intermediary field_6850
Lnet/minecraft/class_1463;field_6850:Z
official cl
Lcgb;cl:Z
-
ticksUntilJump
private int ticksUntilJump- Mappings:
Namespace Name Mixin selector named ticksUntilJump
Lnet/minecraft/entity/passive/RabbitEntity;ticksUntilJump:I
intermediary field_6848
Lnet/minecraft/class_1463;field_6848:I
official cm
Lcgb;cm:I
-
moreCarrotTicks
int moreCarrotTicks- Mappings:
Namespace Name Mixin selector named moreCarrotTicks
Lnet/minecraft/entity/passive/RabbitEntity;moreCarrotTicks:I
intermediary field_6847
Lnet/minecraft/class_1463;field_6847:I
official cn
Lcgb;cn:I
-
-
Constructor Details
-
RabbitEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbsw;<init>(Lbtc;Ldca;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
getJumpVelocity
protected float getJumpVelocity()- Overrides:
getJumpVelocity
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getJumpVelocity
Lnet/minecraft/entity/LivingEntity;getJumpVelocity()F
intermediary method_6106
Lnet/minecraft/class_1309;method_6106()F
official fh
Lbtr;fh()F
-
jump
protected void jump()- Overrides:
jump
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named jump
Lnet/minecraft/entity/LivingEntity;jump()V
intermediary method_6043
Lnet/minecraft/class_1309;method_6043()V
official fj
Lbtr;fj()V
-
getJumpProgress
public float getJumpProgress(float delta) - Mappings:
Namespace Name Mixin selector named getJumpProgress
Lnet/minecraft/entity/passive/RabbitEntity;getJumpProgress(F)F
intermediary method_6605
Lnet/minecraft/class_1463;method_6605(F)F
official G
Lcgb;G(F)F
-
setSpeed
public void setSpeed(double speed) - Mappings:
Namespace Name Mixin selector named setSpeed
Lnet/minecraft/entity/passive/RabbitEntity;setSpeed(D)V
intermediary method_6606
Lnet/minecraft/class_1463;method_6606(D)V
official i
Lcgb;i(D)V
-
setJumping
public void setJumping(boolean jumping) - Overrides:
setJumping
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named setJumping
Lnet/minecraft/entity/LivingEntity;setJumping(Z)V
intermediary method_6100
Lnet/minecraft/class_1309;method_6100(Z)V
official s
Lbtr;s(Z)V
-
startJump
public void startJump()- Mappings:
Namespace Name Mixin selector named startJump
Lnet/minecraft/entity/passive/RabbitEntity;startJump()V
intermediary method_6618
Lnet/minecraft/class_1463;method_6618()V
official s
Lcgb;s()V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in 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 initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsw;a(Lako$a;)V
-
mobTick
public void mobTick()- Overrides:
mobTick
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named mobTick
Lnet/minecraft/entity/mob/MobEntity;mobTick()V
intermediary method_5958
Lnet/minecraft/class_1308;method_5958()V
official Z
Lbtt;Z()V
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Overrides:
shouldSpawnSprintingParticles
in classEntity
- Mappings:
Namespace Name Mixin selector named shouldSpawnSprintingParticles
Lnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
intermediary method_27298
Lnet/minecraft/class_1297;method_27298()Z
official bq
Lbsw;bq()Z
-
lookTowards
private void lookTowards(double x, double z) - Mappings:
Namespace Name Mixin selector named lookTowards
Lnet/minecraft/entity/passive/RabbitEntity;lookTowards(DD)V
intermediary method_6616
Lnet/minecraft/class_1463;method_6616(DD)V
official c
Lcgb;c(DD)V
-
enableJump
private void enableJump()- Mappings:
Namespace Name Mixin selector named enableJump
Lnet/minecraft/entity/passive/RabbitEntity;enableJump()V
intermediary method_6611
Lnet/minecraft/class_1463;method_6611()V
official gw
Lcgb;gw()V
-
disableJump
private void disableJump()- Mappings:
Namespace Name Mixin selector named disableJump
Lnet/minecraft/entity/passive/RabbitEntity;disableJump()V
intermediary method_6621
Lnet/minecraft/class_1463;method_6621()V
official gx
Lcgb;gx()V
-
doScheduleJump
private void doScheduleJump()- Mappings:
Namespace Name Mixin selector named doScheduleJump
Lnet/minecraft/entity/passive/RabbitEntity;doScheduleJump()V
intermediary method_6608
Lnet/minecraft/class_1463;method_6608()V
official gy
Lcgb;gy()V
-
scheduleJump
private void scheduleJump()- Mappings:
Namespace Name Mixin selector named scheduleJump
Lnet/minecraft/entity/passive/RabbitEntity;scheduleJump()V
intermediary method_6619
Lnet/minecraft/class_1463;method_6619()V
official gz
Lcgb;gz()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official n_
Lbtr;n_()V
-
createRabbitAttributes
- Mappings:
Namespace Name Mixin selector named createRabbitAttributes
Lnet/minecraft/entity/passive/RabbitEntity;createRabbitAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26892
Lnet/minecraft/class_1463;method_26892()Lnet/minecraft/class_5132$class_5133;
official u
Lcgb;u()Lbuy$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:
writeCustomDataToNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsw;b(Lus;)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.
nbt
might 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:
readCustomDataFromNbt
in classAnimalEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsw;a(Lus;)V
-
getJumpSound
- Mappings:
Namespace Name Mixin selector named getJumpSound
Lnet/minecraft/entity/passive/RabbitEntity;getJumpSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6615
Lnet/minecraft/class_1463;method_6615()Lnet/minecraft/class_3414;
official y
Lcgb;y()Lavz;
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official v
Lbtt;v()Lavz;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official d
Lbtr;d(Lbrp;)Lavz;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official o_
Lbtr;o_()Lavz;
-
tryAttack
-
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:
getSoundCategory
in classEntity
- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
official de
Lbsw;de()Lawb;
-
createChild
@Nullable public @Nullable RabbitEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChild
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named createChild
Lnet/minecraft/entity/passive/RabbitEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/RabbitEntity;
intermediary method_6620
Lnet/minecraft/class_1463;method_6620(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1463;
official b
Lcgb;b(Larf;Lbsq;)Lcgb;
-
isBreedingItem
- Specified by:
isBreedingItem
in classAnimalEntity
- Mappings:
Namespace Name Mixin selector named isBreedingItem
Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
intermediary method_6481
Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
official o
Lcfh;o(Lcur;)Z
-
getVariant
- Specified by:
getVariant
in interfaceVariantHolder<RabbitEntity.RabbitType>
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/entity/passive/RabbitEntity;getVariant()Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
intermediary method_47855
Lnet/minecraft/class_1463;method_47855()Lnet/minecraft/class_1463$class_7990;
official gq
Lcgb;gq()Lcgb$g;
-
setVariant
- Specified by:
setVariant
in interfaceVariantHolder<RabbitEntity.RabbitType>
- Mappings:
Namespace Name Mixin selector named setVariant
Lnet/minecraft/entity/passive/RabbitEntity;setVariant(Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;)V
intermediary method_47853
Lnet/minecraft/class_1463;method_47853(Lnet/minecraft/class_1463$class_7990;)V
official a
Lcgb;a(Lcgb$g;)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initialize
in classPassiveEntity
- Mappings:
Namespace Name Mixin selector named initialize
Lnet/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_5943
Lnet/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 a
Lbtt;a(Ldcp;Lbqu;Lbtv;Lbuk;)Lbuk;
-
getTypeFromPos
- Mappings:
Namespace Name Mixin selector named getTypeFromPos
Lnet/minecraft/entity/passive/RabbitEntity;getTypeFromPos(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
intermediary method_47854
Lnet/minecraft/class_1463;method_47854(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1463$class_7990;
official a
Lcgb;a(Ldcb;Liz;)Lcgb$g;
-
canSpawn
public static boolean canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawn
Lnet/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;)Z
intermediary method_20669
Lnet/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;)Z
official c
Lcgb;c(Lbtc;Ldcb;Lbtv;Liz;Lazh;)Z
-
wantsCarrots
boolean wantsCarrots()- Mappings:
Namespace Name Mixin selector named wantsCarrots
Lnet/minecraft/entity/passive/RabbitEntity;wantsCarrots()Z
intermediary method_6607
Lnet/minecraft/class_1463;method_6607()Z
official gA
Lcgb;gA()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:
handleStatus
in classAnimalEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbsw;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:
getLeashOffset
in classEntity
- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
intermediary method_29919
Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
official cM
Lbsw;cM()Levt;
-