Class MerchantEntity
- All Implemented Interfaces:
Attackable,DataTracked,EquipmentHolder,InventoryOwner,Leashable,Npc,Targeter,ScoreHolder,CommandOutput,Nameable,Merchant,EntityLike
- Direct Known Subclasses:
VillagerEntity,WanderingTraderEntity
- Mappings:
Namespace Name named net/minecraft/entity/passive/MerchantEntityintermediary net/minecraft/class_3988official cmf
-
Nested Class Summary
Nested 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 @Nullable PlayerEntitystatic final intprivate static final TrackedData<Integer> private final SimpleInventoryprivate static final intprivate static final Loggerprotected @Nullable TradeOfferListFields 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, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_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, 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, riptideAttackDamage, riptideStack, riptideTicks, 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_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, 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
DUMMYFields inherited from interface net.minecraft.entity.InventoryOwner
INVENTORY_KEYFields inherited from interface net.minecraft.entity.Leashable
field_52314, field_52315, LEASH_NBT_KEYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidafterUsing(TradeOffer offer) booleanprotected abstract voidprotected voidfillRecipesFromPool(TradeOfferList recipeList, TradeOffers.Factory[] pool, int count) intintgetLeashPos(float delta) Returns the position of the leash this entity holds.getStackReference(int mappedIndex) Obtains a stack reference to be modified.protected SoundEventgetTradingSound(boolean sold) booleanprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) booleanisClient()booleanvoidonDeath(DamageSource damageSource) voidonSellingItem(ItemStack stack) voidprotected voidproduceParticles(ParticleEffect parameters) voidReads custom data fromnbt.protected voidvoidsetCustomer(@Nullable PlayerEntity customer) voidsetExperienceFromServer(int experience) voidsetHeadRollingTimeLeft(int ticks) voidteleportTo(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.voidtrade(TradeOffer offer) voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.passive.PassiveEntity
createChild, getBreedingAge, growUp, growUp, isBaby, isReadyToBreed, onGrowUp, onTrackedDataSet, setBaby, setBreedingAge, tickMovement, toGrowUpAgeMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash, shouldTickLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getAmbientSound, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, getXpToDrop, handleStatus, hasPositionTarget, initEquipment, initGoals, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, 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, 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, getDeathSound, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getFallSounds, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getHurtSound, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getXpToDrop, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDropLoot, shouldDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, tryEatFood, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, 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, getLeashOffset, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, 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, 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, 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, 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, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, 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, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.InventoryOwner
readInventory, writeInventoryMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.village.Merchant
canRefreshTrades, sendOffersMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
HEAD_ROLLING_TIME_LEFT
- Mappings:
Namespace Name Mixin selector named HEAD_ROLLING_TIME_LEFTLnet/minecraft/entity/passive/MerchantEntity;HEAD_ROLLING_TIME_LEFT:Lnet/minecraft/entity/data/TrackedData;intermediary field_19295Lnet/minecraft/class_3988;field_19295:Lnet/minecraft/class_2940;official ceLcmf;ce:Lajw;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/passive/MerchantEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_48833Lnet/minecraft/class_3988;field_48833:Lorg/slf4j/Logger;official cfLcmf;cf:Lorg/slf4j/Logger;
-
field_30599
public static final int field_30599- See Also:
- Mappings:
Namespace Name Mixin selector named field_30599Lnet/minecraft/entity/passive/MerchantEntity;field_30599:Iintermediary field_30599Lnet/minecraft/class_3988;field_30599:Iofficial ccLcmf;cc:I
-
INVENTORY_SIZE
private static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_SIZELnet/minecraft/entity/passive/MerchantEntity;INVENTORY_SIZE:Iintermediary field_30600Lnet/minecraft/class_3988;field_30600:Iofficial cgLcmf;cg:I
-
customer
- Mappings:
Namespace Name Mixin selector named customerLnet/minecraft/entity/passive/MerchantEntity;customer:Lnet/minecraft/entity/player/PlayerEntity;intermediary field_17722Lnet/minecraft/class_3988;field_17722:Lnet/minecraft/class_1657;official chLcmf;ch:Lcmx;
-
offers
- Mappings:
Namespace Name Mixin selector named offersLnet/minecraft/entity/passive/MerchantEntity;offers:Lnet/minecraft/village/TradeOfferList;intermediary field_17721Lnet/minecraft/class_3988;field_17721:Lnet/minecraft/class_1916;official cdLcmf;cd:Ldbv;
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/entity/passive/MerchantEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;intermediary field_17723Lnet/minecraft/class_3988;field_17723:Lnet/minecraft/class_1277;official ciLcmf;ci:Lbra;
-
-
Constructor Details
-
MerchantEntity
- 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>Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
initialize
public 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 aLbtp;a(Lddl;Lbqp;Lbtr;Lbuh;)Lbuh;
-
getHeadRollingTimeLeft
public int getHeadRollingTimeLeft()- Mappings:
Namespace Name Mixin selector named getHeadRollingTimeLeftLnet/minecraft/entity/passive/MerchantEntity;getHeadRollingTimeLeft()Iintermediary method_20506Lnet/minecraft/class_3988;method_20506()Iofficial sLcmf;s()I
-
setHeadRollingTimeLeft
public void setHeadRollingTimeLeft(int ticks) - Mappings:
Namespace Name Mixin selector named setHeadRollingTimeLeftLnet/minecraft/entity/passive/MerchantEntity;setHeadRollingTimeLeft(I)Vintermediary method_20507Lnet/minecraft/class_3988;method_20507(I)Vofficial sLcmf;s(I)V
-
getExperience
public int getExperience()- Specified by:
getExperiencein interfaceMerchant- Mappings:
Namespace Name Mixin selector named getExperienceLnet/minecraft/village/Merchant;getExperience()Iintermediary method_19269Lnet/minecraft/class_1915;method_19269()Iofficial tLdbt;t()I
-
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 aLbsr;a(Laka$a;)V
-
setCustomer
- Specified by:
setCustomerin interfaceMerchant- Mappings:
Namespace Name Mixin selector named setCustomerLnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_8259Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)Vofficial aLdbt;a(Lcmx;)V
-
getCustomer
- Specified by:
getCustomerin interfaceMerchant- Mappings:
Namespace Name Mixin selector named getCustomerLnet/minecraft/village/Merchant;getCustomer()Lnet/minecraft/entity/player/PlayerEntity;intermediary method_8257Lnet/minecraft/class_1915;method_8257()Lnet/minecraft/class_1657;official gkLdbt;gk()Lcmx;
-
hasCustomer
public boolean hasCustomer()- Mappings:
Namespace Name Mixin selector named hasCustomerLnet/minecraft/entity/passive/MerchantEntity;hasCustomer()Zintermediary method_18009Lnet/minecraft/class_3988;method_18009()Zofficial glLcmf;gl()Z
-
getOffers
- Specified by:
getOffersin interfaceMerchant- Mappings:
Namespace Name Mixin selector named getOffersLnet/minecraft/village/Merchant;getOffers()Lnet/minecraft/village/TradeOfferList;intermediary method_8264Lnet/minecraft/class_1915;method_8264()Lnet/minecraft/class_1916;official gmLdbt;gm()Ldbv;
-
setOffersFromServer
- Specified by:
setOffersFromServerin interfaceMerchant- Mappings:
Namespace Name Mixin selector named setOffersFromServerLnet/minecraft/village/Merchant;setOffersFromServer(Lnet/minecraft/village/TradeOfferList;)Vintermediary method_8261Lnet/minecraft/class_1915;method_8261(Lnet/minecraft/class_1916;)Vofficial aLdbt;a(Ldbv;)V
-
setExperienceFromServer
public void setExperienceFromServer(int experience) - Specified by:
setExperienceFromServerin interfaceMerchant- Mappings:
Namespace Name Mixin selector named setExperienceFromServerLnet/minecraft/village/Merchant;setExperienceFromServer(I)Vintermediary method_19271Lnet/minecraft/class_1915;method_19271(I)Vofficial tLdbt;t(I)V
-
trade
-
afterUsing
- Mappings:
Namespace Name Mixin selector named afterUsingLnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)Vintermediary method_18008Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)Vofficial bLcmf;b(Ldbu;)V
-
isLeveledMerchant
public boolean isLeveledMerchant()- Specified by:
isLeveledMerchantin interfaceMerchant- Mappings:
Namespace Name Mixin selector named isLeveledMerchantLnet/minecraft/village/Merchant;isLeveledMerchant()Zintermediary method_19270Lnet/minecraft/class_1915;method_19270()Zofficial gnLdbt;gn()Z
-
onSellingItem
- Specified by:
onSellingItemin interfaceMerchant- Mappings:
Namespace Name Mixin selector named onSellingItemLnet/minecraft/village/Merchant;onSellingItem(Lnet/minecraft/item/ItemStack;)Vintermediary method_8258Lnet/minecraft/class_1915;method_8258(Lnet/minecraft/class_1799;)Vofficial nLdbt;n(Lcuq;)V
-
getYesSound
- Specified by:
getYesSoundin interfaceMerchant- Mappings:
Namespace Name Mixin selector named getYesSoundLnet/minecraft/village/Merchant;getYesSound()Lnet/minecraft/sound/SoundEvent;intermediary method_18010Lnet/minecraft/class_1915;method_18010()Lnet/minecraft/class_3414;official goLdbt;go()Lavo;
-
getTradingSound
- Mappings:
Namespace Name Mixin selector named getTradingSoundLnet/minecraft/entity/passive/MerchantEntity;getTradingSound(Z)Lnet/minecraft/sound/SoundEvent;intermediary method_18012Lnet/minecraft/class_3988;method_18012(Z)Lnet/minecraft/class_3414;official xLcmf;x(Z)Lavo;
-
playCelebrateSound
public void playCelebrateSound()- Mappings:
Namespace Name Mixin selector named playCelebrateSoundLnet/minecraft/entity/passive/MerchantEntity;playCelebrateSound()Vintermediary method_20010Lnet/minecraft/class_3988;method_20010()Vofficial gpLcmf;gp()V
-
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 classPassiveEntity- 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 bLbsr;b(Lub;)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 classPassiveEntity- 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 aLbsr;a(Lub;)V
-
teleportTo
Teleports this entity to another location, potentially in another world.Note if teleported to a different world, entities (excluding server player entities) are completely recreated at the destination.
- Overrides:
teleportToin classEntity- Returns:
- the entity after teleporting
- Mappings:
Namespace Name Mixin selector named teleportToLnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;intermediary method_5731Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;official aLbsr;a(Leqc;)Lbsr;
-
resetCustomer
protected void resetCustomer()- Mappings:
Namespace Name Mixin selector named resetCustomerLnet/minecraft/entity/passive/MerchantEntity;resetCustomer()Vintermediary method_19181Lnet/minecraft/class_3988;method_19181()Vofficial gqLcmf;gq()V
-
onDeath
- Overrides:
onDeathin classLivingEntity- Mappings:
Namespace Name Mixin selector named onDeathLnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6078Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)Vofficial aLbtn;a(Lbrk;)V
-
produceParticles
- Mappings:
Namespace Name Mixin selector named produceParticlesLnet/minecraft/entity/passive/MerchantEntity;produceParticles(Lnet/minecraft/particle/ParticleEffect;)Vintermediary method_18007Lnet/minecraft/class_3988;method_18007(Lnet/minecraft/class_2394;)Vofficial aLcmf;a(Llk;)V
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfaceLeashable- Overrides:
canBeLeashedin classMobEntity- Mappings:
Namespace Name Mixin selector named canBeLeashedLnet/minecraft/entity/Leashable;canBeLeashed()Zintermediary method_5931Lnet/minecraft/class_9817;method_5931()Zofficial yLbtk;y()Z
-
getInventory
- Specified by:
getInventoryin interfaceInventoryOwner- Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/SimpleInventory;intermediary method_35199Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1277;official xLcmi;x()Lbra;
-
getStackReference
Obtains a stack reference to be modified. Used by commands like/lootor/item.- Overrides:
getStackReferencein classLivingEntity- Parameters:
mappedIndex- the mapped index as given by the item slot argument- See Also:
- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;official a_Lbsr;a_(I)Lbug;
-
fillRecipes
protected abstract void fillRecipes()- Mappings:
Namespace Name Mixin selector named fillRecipesLnet/minecraft/entity/passive/MerchantEntity;fillRecipes()Vintermediary method_7237Lnet/minecraft/class_3988;method_7237()Vofficial grLcmf;gr()V
-
fillRecipesFromPool
protected void fillRecipesFromPool(TradeOfferList recipeList, TradeOffers.Factory[] pool, int count) - Mappings:
Namespace Name Mixin selector named fillRecipesFromPoolLnet/minecraft/entity/passive/MerchantEntity;fillRecipesFromPool(Lnet/minecraft/village/TradeOfferList;[Lnet/minecraft/village/TradeOffers$Factory;I)Vintermediary method_19170Lnet/minecraft/class_3988;method_19170(Lnet/minecraft/class_1916;[Lnet/minecraft/class_3853$class_1652;I)Vofficial aLcmf;a(Ldbv;[Lcmo$g;I)V
-
getLeashPos
Returns the position of the leash this entity holds.This is different from
Entity.getLeashOffset(float); this method is called on the entity that holds the leash.- Overrides:
getLeashPosin classEntity- Returns:
- the position of the leash this entity holds
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashPosLnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;intermediary method_30951Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;official sLbsr;s(F)Lexc;
-
isClient
public boolean isClient()
-