类的使用
net.minecraft.entity.EquipmentSlot
-
-
net.minecraft.client.render.entity.feature中EquipmentSlot的使用
参数类型为EquipmentSlot的net.minecraft.client.render.entity.feature中的方法 修饰符和类型 方法 说明 private AArmorFeatureRenderer. getArmor(EquipmentSlot slot)private voidArmorFeatureRenderer. renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model)protected voidArmorFeatureRenderer. setVisible(A bipedModel, EquipmentSlot slot)private booleanArmorFeatureRenderer. usesSecondLayer(EquipmentSlot slot) -
net.minecraft.enchantment中EquipmentSlot的使用
声明为EquipmentSlot的net.minecraft.enchantment中的字段 修饰符和类型 字段 说明 private static EquipmentSlot[]Enchantments. ALL_ARMORprivate EquipmentSlot[]Enchantment. slotTypes返回变量类型为EquipmentSlot的类型的net.minecraft.enchantment中的方法 修饰符和类型 方法 说明 static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied.static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.Map<EquipmentSlot,ItemStack>Enchantment. getEquipment(LivingEntity entity) -
net.minecraft.entity中EquipmentSlot的使用
返回EquipmentSlot的net.minecraft.entity中的方法 修饰符和类型 方法 说明 static EquipmentSlotEquipmentSlot. byName(String name)static EquipmentSlotEquipmentSlot. fromTypeIndex(EquipmentSlot.Type type, int index)private static @Nullable EquipmentSlotLivingEntity. getEquipmentSlot(int slotId)static EquipmentSlotLivingEntity. getPreferredEquipmentSlot(ItemStack stack)static EquipmentSlotEquipmentSlot. valueOf(String name)返回带有指定名称的该类型的枚举常量。static EquipmentSlot[]EquipmentSlot. values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。返回变量类型为EquipmentSlot的类型的net.minecraft.entity中的方法 修饰符和类型 方法 说明 private @Nullable Map<EquipmentSlot,ItemStack>LivingEntity. method_30129()参数类型为EquipmentSlot的net.minecraft.entity中的方法 修饰符和类型 方法 说明 voidEntity. equipStack(EquipmentSlot slot, ItemStack stack)abstract voidLivingEntity. equipStack(EquipmentSlot slot, ItemStack stack)private ItemStackLivingEntity. getArmorInSlot(EquipmentSlot slot)private static CommandItemSlotLivingEntity. getCommandItemSlot(LivingEntity entity, EquipmentSlot slot)private static byteLivingEntity. getEquipmentBreakStatus(EquipmentSlot slot)abstract ItemStackLivingEntity. getEquippedStack(EquipmentSlot slot)private ItemStackLivingEntity. getStackInHandSlot(EquipmentSlot slot)booleanLivingEntity. hasStackEquipped(EquipmentSlot slot)voidLivingEntity. sendEquipmentBreakStatus(EquipmentSlot slot)private voidLivingEntity. setArmorInSlot(EquipmentSlot slot, ItemStack armor)private voidLivingEntity. setStackInHandSlot(EquipmentSlot slot, ItemStack stack)类型变量类型为EquipmentSlot的net.minecraft.entity中的方法参数 修饰符和类型 方法 说明 private voidLivingEntity. setEquipment(Map<EquipmentSlot,ItemStack> equipment)private voidLivingEntity. swapHandStacks(Map<EquipmentSlot,ItemStack> equipment) -
net.minecraft.entity.decoration中EquipmentSlot的使用
返回EquipmentSlot的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 private EquipmentSlotArmorStandEntity. slotFromPosition(Vec3d vec3d)参数类型为EquipmentSlot的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 private booleanArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)voidArmorStandEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackArmorStandEntity. getEquippedStack(EquipmentSlot slot)private booleanArmorStandEntity. isSlotDisabled(EquipmentSlot slot) -
net.minecraft.entity.mob中EquipmentSlot的使用
参数类型为EquipmentSlot的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 protected voidMobEntity. enchantEquipment(float power, EquipmentSlot slot)private voidPiglinEntity. equipAtChance(EquipmentSlot slot, ItemStack stack)protected voidMobEntity. equipLootStack(EquipmentSlot slot, ItemStack stack)voidAbstractSkeletonEntity. equipStack(EquipmentSlot slot, ItemStack stack)voidMobEntity. equipStack(EquipmentSlot slot, ItemStack stack)protected floatMobEntity. getDropChance(EquipmentSlot slot)static @Nullable ItemMobEntity. getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel)ItemStackMobEntity. getEquippedStack(EquipmentSlot slot)voidMobEntity. setEquipmentDropChance(EquipmentSlot slot, float chance)voidMobEntity. updateDropChances(EquipmentSlot slot) -
net.minecraft.entity.player中EquipmentSlot的使用
参数类型为EquipmentSlot的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 voidPlayerEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackPlayerEntity. getEquippedStack(EquipmentSlot slot) -
net.minecraft.inventory中EquipmentSlot的使用
参数类型为EquipmentSlot的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot)Creates a slot backed by an equipment slot of an living entity.static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot, Predicate<ItemStack> stackFilter)Creates a slot backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory. -
net.minecraft.item中EquipmentSlot的使用
声明为EquipmentSlot的net.minecraft.item中的字段 修饰符和类型 字段 说明 protected EquipmentSlotArmorItem. slot返回EquipmentSlot的net.minecraft.item中的方法 修饰符和类型 方法 说明 EquipmentSlotArmorItem. getSlotType()参数类型为EquipmentSlot的net.minecraft.item中的构造器 构造器 说明 ArmorItem(ArmorMaterial material, EquipmentSlot slot, Item.Settings settings)DyeableArmorItem(ArmorMaterial material, EquipmentSlot slot, Item.Settings settings) -
net.minecraft.loot.function中EquipmentSlot的使用
声明为EquipmentSlot的net.minecraft.loot.function中的字段 修饰符和类型 字段 说明 private EquipmentSlot[]SetAttributesLootFunction.Attribute. slots类型参数类型为EquipmentSlot的net.minecraft.loot.function中的字段 修饰符和类型 字段 说明 private Set<EquipmentSlot>SetAttributesLootFunction.AttributeBuilder. slots参数类型为EquipmentSlot的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 SetAttributesLootFunction.AttributeBuilderSetAttributesLootFunction.AttributeBuilder. slot(EquipmentSlot slot)参数类型为EquipmentSlot的net.minecraft.loot.function中的构造器 构造器 说明 Attribute(String name, EntityAttribute attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount, EquipmentSlot[] slots, @Nullable UUID id) -
net.minecraft.network.packet.s2c.play中EquipmentSlot的使用
类型参数类型为EquipmentSlot的net.minecraft.network.packet.s2c.play中的字段 修饰符和类型 字段 说明 private List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. equipmentList返回变量类型为EquipmentSlot的类型的net.minecraft.network.packet.s2c.play中的方法 修饰符和类型 方法 说明 List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. getEquipmentList()类型变量类型为EquipmentSlot的net.minecraft.network.packet.s2c.play中的构造器参数 构造器 说明 EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList) -
net.minecraft.screen中EquipmentSlot的使用
声明为EquipmentSlot的net.minecraft.screen中的字段 修饰符和类型 字段 说明 private static EquipmentSlot[]PlayerScreenHandler. EQUIPMENT_SLOT_ORDER -
net.minecraft.server.command中EquipmentSlot的使用
参数类型为EquipmentSlot的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static ItemStackLootCommand. getHeldItem(ServerCommandSource source, EquipmentSlot slot)
-