Class RabbitEntity
- All Implemented Interfaces:
Attackable,Targeter,VariantHolder<RabbitEntity.RabbitType>,CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official bsfintermediary net/minecraft/class_1463named net/minecraft/entity/passive/RabbitEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classRabbitEntity.FleeGoal<T extends LivingEntity>private static classstatic 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.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final intstatic final intprivate static final intprivate intprivate intprivate static final Identifierprivate booleanstatic final double(package private) intprivate static final TrackedData<Integer>private intFields inherited from class net.minecraft.entity.passive.AnimalEntity
BREEDING_COOLDOWNFields inherited from class net.minecraft.entity.passive.PassiveEntity
BABY_AGE, breedingAge, forcedAge, happyTicksRemainingFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, 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, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, 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, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, 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, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, 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, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) private voidprivate voidprivate voidprotected SoundEventprotected SoundEventprotected SoundEventgetHurtSound(DamageSource source) floatgetJumpProgress(float delta) 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.RabbitTypegetTypeFromPos(WorldAccess world, BlockPos pos) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected voidInitializes data tracker.protected voidinitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) booleanisBreedingItem(ItemStack stack) private static booleanisTempting(ItemStack stack) protected voidjump()private voidlookTowards(double x, double z) voidmobTick()voidReads custom data fromnbt.private voidvoidsetJumping(boolean jumping) voidsetSpeed(double speed) voidsetVariant(RabbitEntity.RabbitType rabbitType) booleanvoidvoidboolean(package private) booleanvoidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.passive.AnimalEntity
breed, breed, canBreedWith, canEat, canImmediatelyDespawn, damage, eat, getHeightOffset, getLoveTicks, getLovingPlayer, getMinAmbientSoundDelay, getPathfindingFavor, getXpToDrop, interactMob, isInLove, isLightLevelValidForNaturalSpawn, isValidNaturalSpawn, lovePlayer, resetLoveTicks, setLoveTicksMethods inherited from class net.minecraft.entity.passive.PassiveEntity
getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, shouldFollowLeash, updateForLeashLength, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, checkDespawn, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getSquaredDistanceToAttackPosOf, getTarget, getVisibilityCache, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, startRiding, swimUpward, tick, tickNewAi, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSounds, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRandom, getRecentDamageSource, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setLivingFlag, setNearbySongPlaying, setNoDrag, 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, wakeUpMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, 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, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, 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, 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, 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, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, 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, removePassenger, removeScoreboardTag, 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, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, 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, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
field_30356
public static final double field_30356- See Also:
- Mappings:
Namespace Name Mixin selector official bTLbsf;bT:Dintermediary field_30356Lnet/minecraft/class_1463;field_30356:Dnamed field_30356Lnet/minecraft/entity/passive/RabbitEntity;field_30356:D
-
field_30357
public static final double field_30357- See Also:
- Mappings:
Namespace Name Mixin selector official bULbsf;bU:Dintermediary field_30357Lnet/minecraft/class_1463;field_30357:Dnamed field_30357Lnet/minecraft/entity/passive/RabbitEntity;field_30357:D
-
field_30358
public static final double field_30358- See Also:
- Mappings:
Namespace Name Mixin selector official bWLbsf;bW:Dintermediary field_30358Lnet/minecraft/class_1463;field_30358:Dnamed field_30358Lnet/minecraft/entity/passive/RabbitEntity;field_30358:D
-
ESCAPE_DANGER_SPEED
public static final double ESCAPE_DANGER_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official bXLbsf;bX:Dintermediary field_30359Lnet/minecraft/class_1463;field_30359:Dnamed ESCAPE_DANGER_SPEEDLnet/minecraft/entity/passive/RabbitEntity;ESCAPE_DANGER_SPEED:D
-
MELEE_ATTACK_SPEED
public static final double MELEE_ATTACK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official bYLbsf;bY:Dintermediary field_30360Lnet/minecraft/class_1463;field_30360:Dnamed MELEE_ATTACK_SPEEDLnet/minecraft/entity/passive/RabbitEntity;MELEE_ATTACK_SPEED:D
-
RABBIT_TYPE
- Mappings:
Namespace Name Mixin selector official cbLbsf;cb:Laby;intermediary field_6852Lnet/minecraft/class_1463;field_6852:Lnet/minecraft/class_2940;named RABBIT_TYPELnet/minecraft/entity/passive/RabbitEntity;RABBIT_TYPE:Lnet/minecraft/entity/data/TrackedData;
-
KILLER_BUNNY
- Mappings:
Namespace Name Mixin selector official ccLbsf;cc:Lacq;intermediary field_6846Lnet/minecraft/class_1463;field_6846:Lnet/minecraft/class_2960;named KILLER_BUNNYLnet/minecraft/entity/passive/RabbitEntity;KILLER_BUNNY:Lnet/minecraft/util/Identifier;
-
field_30368
public static final int field_30368- See Also:
- Mappings:
Namespace Name Mixin selector official bZLbsf;bZ:Iintermediary field_30368Lnet/minecraft/class_1463;field_30368:Inamed field_30368Lnet/minecraft/entity/passive/RabbitEntity;field_30368:I
-
field_30369
public static final int field_30369- See Also:
- Mappings:
Namespace Name Mixin selector official caLbsf;ca:Iintermediary field_30369Lnet/minecraft/class_1463;field_30369:Inamed field_30369Lnet/minecraft/entity/passive/RabbitEntity;field_30369:I
-
field_30370
private static final int field_30370- See Also:
- Mappings:
Namespace Name Mixin selector official cdLbsf;cd:Iintermediary field_30370Lnet/minecraft/class_1463;field_30370:Inamed field_30370Lnet/minecraft/entity/passive/RabbitEntity;field_30370:I
-
jumpTicks
private int jumpTicks- Mappings:
Namespace Name Mixin selector official ceLbsf;ce:Iintermediary field_6851Lnet/minecraft/class_1463;field_6851:Inamed jumpTicksLnet/minecraft/entity/passive/RabbitEntity;jumpTicks:I
-
jumpDuration
private int jumpDuration- Mappings:
Namespace Name Mixin selector official cfLbsf;cf:Iintermediary field_6849Lnet/minecraft/class_1463;field_6849:Inamed jumpDurationLnet/minecraft/entity/passive/RabbitEntity;jumpDuration:I
-
lastOnGround
private boolean lastOnGround- Mappings:
Namespace Name Mixin selector official cgLbsf;cg:Zintermediary field_6850Lnet/minecraft/class_1463;field_6850:Znamed lastOnGroundLnet/minecraft/entity/passive/RabbitEntity;lastOnGround:Z
-
ticksUntilJump
private int ticksUntilJump- Mappings:
Namespace Name Mixin selector official chLbsf;ch:Iintermediary field_6848Lnet/minecraft/class_1463;field_6848:Inamed ticksUntilJumpLnet/minecraft/entity/passive/RabbitEntity;ticksUntilJump:I
-
moreCarrotTicks
int moreCarrotTicks- Mappings:
Namespace Name Mixin selector official ciLbsf;ci:Iintermediary field_6847Lnet/minecraft/class_1463;field_6847:Inamed moreCarrotTicksLnet/minecraft/entity/passive/RabbitEntity;moreCarrotTicks:I
-
-
Constructor Details
-
RabbitEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbfj;<init>(Lbfn;Lcmm;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
initGoals
protected void initGoals() -
getJumpVelocity
protected float getJumpVelocity()- Overrides:
getJumpVelocityin classLivingEntity- Mappings:
Namespace Name Mixin selector official eULbfz;eU()Fintermediary method_6106Lnet/minecraft/class_1309;method_6106()Fnamed getJumpVelocityLnet/minecraft/entity/LivingEntity;getJumpVelocity()F
-
jump
protected void jump()- Overrides:
jumpin classLivingEntity- Mappings:
Namespace Name Mixin selector official eWLbfz;eW()Vintermediary method_6043Lnet/minecraft/class_1309;method_6043()Vnamed jumpLnet/minecraft/entity/LivingEntity;jump()V
-
getJumpProgress
public float getJumpProgress(float delta) - Mappings:
Namespace Name Mixin selector official DLbsf;D(F)Fintermediary method_6605Lnet/minecraft/class_1463;method_6605(F)Fnamed getJumpProgressLnet/minecraft/entity/passive/RabbitEntity;getJumpProgress(F)F
-
setSpeed
public void setSpeed(double speed) - Mappings:
Namespace Name Mixin selector official iLbsf;i(D)Vintermediary method_6606Lnet/minecraft/class_1463;method_6606(D)Vnamed setSpeedLnet/minecraft/entity/passive/RabbitEntity;setSpeed(D)V
-
setJumping
public void setJumping(boolean jumping) - Overrides:
setJumpingin classLivingEntity- Mappings:
Namespace Name Mixin selector official rLbfz;r(Z)Vintermediary method_6100Lnet/minecraft/class_1309;method_6100(Z)Vnamed setJumpingLnet/minecraft/entity/LivingEntity;setJumping(Z)V
-
startJump
public void startJump()- Mappings:
Namespace Name Mixin selector official qLbsf;q()Vintermediary method_6618Lnet/minecraft/class_1463;method_6618()Vnamed startJumpLnet/minecraft/entity/passive/RabbitEntity;startJump()V
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Overrides:
initDataTrackerin classPassiveEntity- Mappings:
Namespace Name Mixin selector official a_Lbfj;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
mobTick
public void mobTick()- Overrides:
mobTickin classAnimalEntity- Mappings:
Namespace Name Mixin selector official WLbgb;W()Vintermediary method_5958Lnet/minecraft/class_1308;method_5958()Vnamed mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()V
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Overrides:
shouldSpawnSprintingParticlesin classEntity- Mappings:
Namespace Name Mixin selector official bgLbfj;bg()Zintermediary method_27298Lnet/minecraft/class_1297;method_27298()Znamed shouldSpawnSprintingParticlesLnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
-
lookTowards
private void lookTowards(double x, double z) - Mappings:
Namespace Name Mixin selector official cLbsf;c(DD)Vintermediary method_6616Lnet/minecraft/class_1463;method_6616(DD)Vnamed lookTowardsLnet/minecraft/entity/passive/RabbitEntity;lookTowards(DD)V
-
enableJump
private void enableJump()- Mappings:
Namespace Name Mixin selector official geLbsf;ge()Vintermediary method_6611Lnet/minecraft/class_1463;method_6611()Vnamed enableJumpLnet/minecraft/entity/passive/RabbitEntity;enableJump()V
-
disableJump
private void disableJump()- Mappings:
Namespace Name Mixin selector official gfLbsf;gf()Vintermediary method_6621Lnet/minecraft/class_1463;method_6621()Vnamed disableJumpLnet/minecraft/entity/passive/RabbitEntity;disableJump()V
-
doScheduleJump
private void doScheduleJump()- Mappings:
Namespace Name Mixin selector official ggLbsf;gg()Vintermediary method_6608Lnet/minecraft/class_1463;method_6608()Vnamed doScheduleJumpLnet/minecraft/entity/passive/RabbitEntity;doScheduleJump()V
-
scheduleJump
private void scheduleJump()- Mappings:
Namespace Name Mixin selector official ghLbsf;gh()Vintermediary method_6619Lnet/minecraft/class_1463;method_6619()Vnamed scheduleJumpLnet/minecraft/entity/passive/RabbitEntity;scheduleJump()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classAnimalEntity- Mappings:
Namespace Name Mixin selector official b_Lbfz;b_()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
createRabbitAttributes
- Mappings:
Namespace Name Mixin selector official rLbsf;r()Lbhf$a;intermediary method_26892Lnet/minecraft/class_1463;method_26892()Lnet/minecraft/class_5132$class_5133;named createRabbitAttributesLnet/minecraft/entity/passive/RabbitEntity;createRabbitAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses has 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 official bLbfj;b(Lqr;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses has 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 official aLbfj;a(Lqr;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getJumpSound
- Mappings:
Namespace Name Mixin selector official wLbsf;w()Lamg;intermediary method_6615Lnet/minecraft/class_1463;method_6615()Lnet/minecraft/class_3414;named getJumpSoundLnet/minecraft/entity/passive/RabbitEntity;getJumpSound()Lnet/minecraft/sound/SoundEvent;
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official sLbgb;s()Lamg;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector official dLbfz;d(Lben;)Lamg;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector official g_Lbfz;g_()Lamg;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
-
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:
getSoundCategoryin classEntity- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector official cYLbfj;cY()Lami;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
-
isTempting
- Mappings:
Namespace Name Mixin selector official lLbsf;l(Lcfz;)Zintermediary method_6614Lnet/minecraft/class_1463;method_6614(Lnet/minecraft/class_1799;)Znamed isTemptingLnet/minecraft/entity/passive/RabbitEntity;isTempting(Lnet/minecraft/item/ItemStack;)Z
-
createChild
@Nullable public @Nullable RabbitEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity) - Specified by:
createChildin classPassiveEntity- Mappings:
Namespace Name Mixin selector official bLbsf;b(Laif;Lbfe;)Lbsf;intermediary method_6620Lnet/minecraft/class_1463;method_6620(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1463;named createChildLnet/minecraft/entity/passive/RabbitEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/RabbitEntity;
-
isBreedingItem
- Overrides:
isBreedingItemin classAnimalEntity- Mappings:
Namespace Name Mixin selector official mLbrl;m(Lcfz;)Zintermediary method_6481Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Znamed isBreedingItemLnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
-
getVariant
- Specified by:
getVariantin interfaceVariantHolder<RabbitEntity.RabbitType>- Mappings:
Namespace Name Mixin selector official fYLbsf;fY()Lbsf$h;intermediary method_47855Lnet/minecraft/class_1463;method_47855()Lnet/minecraft/class_1463$class_7990;named getVariantLnet/minecraft/entity/passive/RabbitEntity;getVariant()Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
-
setVariant
- Specified by:
setVariantin interfaceVariantHolder<RabbitEntity.RabbitType>- Mappings:
Namespace Name Mixin selector official aLbsf;a(Lbsf$h;)Vintermediary method_47853Lnet/minecraft/class_1463;method_47853(Lnet/minecraft/class_1463$class_7990;)Vnamed setVariantLnet/minecraft/entity/passive/RabbitEntity;setVariant(Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;)V
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt) - Overrides:
initializein classPassiveEntity- Mappings:
Namespace Name Mixin selector official aLbgb;a(Lcnb;Lbdv;Lbgd;Lbgt;Lqr;)Lbgt;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_2487;)Lnet/minecraft/class_1315;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/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
-
getTypeFromPos
- Mappings:
Namespace Name Mixin selector official aLbsf;a(Lcmn;Lgu;)Lbsf$h;intermediary method_47854Lnet/minecraft/class_1463;method_47854(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1463$class_7990;named getTypeFromPosLnet/minecraft/entity/passive/RabbitEntity;getTypeFromPos(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/passive/RabbitEntity$RabbitType;
-
canSpawn
public static boolean canSpawn(EntityType<RabbitEntity> entity, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector official cLbsf;c(Lbfn;Lcmn;Lbgd;Lgu;Lapf;)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;)Znamed 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;)Z
-
wantsCarrots
boolean wantsCarrots()- Mappings:
Namespace Name Mixin selector official giLbsf;gi()Zintermediary method_6607Lnet/minecraft/class_1463;method_6607()Znamed wantsCarrotsLnet/minecraft/entity/passive/RabbitEntity;wantsCarrots()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:
- Mappings:
Namespace Name Mixin selector official bLbfj;b(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vnamed handleStatusLnet/minecraft/entity/Entity;handleStatus(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 official cGLbfj;cG()Leei;intermediary method_29919Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;named getLeashOffsetLnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
-