Uses of Record Class
net.minecraft.predicate.item.ItemPredicate
Package
Description
-
Uses of ItemPredicate in net.minecraft.advancement.criterion
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
FishingRodHookedCriterion.Conditions.caughtItem
private final List<ItemPredicate>
RecipeCraftedCriterion.Conditions.ingredients
private final Optional<ItemPredicate>
BeeNestDestroyedCriterion.Conditions.item
private final Optional<ItemPredicate>
ConsumeItemCriterion.Conditions.item
private final Optional<ItemPredicate>
EnchantedItemCriterion.Conditions.item
private final Optional<ItemPredicate>
FilledBucketCriterion.Conditions.item
private final Optional<ItemPredicate>
ItemDurabilityChangedCriterion.Conditions.item
private final Optional<ItemPredicate>
PlayerInteractedWithEntityCriterion.Conditions.item
private final Optional<ItemPredicate>
ShotCrossbowCriterion.Conditions.item
private final Optional<ItemPredicate>
ThrownItemPickedUpByEntityCriterion.Conditions.item
private final Optional<ItemPredicate>
UsedTotemCriterion.Conditions.item
private final Optional<ItemPredicate>
UsingItemCriterion.Conditions.item
private final Optional<ItemPredicate>
VillagerTradeCriterion.Conditions.item
private final List<ItemPredicate>
InventoryChangedCriterion.Conditions.items
private final Optional<ItemPredicate>
FishingRodHookedCriterion.Conditions.rod
Modifier and TypeMethodDescriptionUsedTotemCriterion.Conditions.create
(ItemPredicate itemPredicate) InventoryChangedCriterion.Conditions.items
(ItemPredicate[] items) Modifier and TypeMethodDescriptionFishingRodHookedCriterion.Conditions.create
(Optional<ItemPredicate> rod, Optional<EntityPredicate> hookedEntity, Optional<ItemPredicate> caughtItem) ItemDurabilityChangedCriterion.Conditions.create
(Optional<ItemPredicate> item, NumberRange.IntRange durability) ShotCrossbowCriterion.Conditions.create
(Optional<ItemPredicate> item) ThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByEntity
(LootContextPredicate player, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) ModifierConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty, List<ItemPredicate> items) Conditions
(Optional<LootContextPredicate> playerPredicate, Identifier recipeId, List<ItemPredicate> ingredients) -
Uses of ItemPredicate in net.minecraft.data.server.recipe
Modifier and TypeMethodDescriptionprivate static AdvancementCriterion<InventoryChangedCriterion.Conditions>
RecipeProvider.conditionsFromItemPredicates
(ItemPredicate[] predicates) -
Uses of ItemPredicate in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
MatchToolLootCondition.predicate
The field for thepredicate
record component. -
Uses of ItemPredicate in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.chest
private final Optional<ItemPredicate>
EntityEquipmentPredicate.chest
The field for thechest
record component.private Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.feet
private final Optional<ItemPredicate>
EntityEquipmentPredicate.feet
The field for thefeet
record component.private Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.head
private final Optional<ItemPredicate>
EntityEquipmentPredicate.head
The field for thehead
record component.private Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.legs
private final Optional<ItemPredicate>
EntityEquipmentPredicate.legs
The field for thelegs
record component.private Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.mainhand
private final Optional<ItemPredicate>
EntityEquipmentPredicate.mainhand
The field for themainhand
record component.private Optional<ItemPredicate>
EntityEquipmentPredicate.Builder.offhand
private final Optional<ItemPredicate>
EntityEquipmentPredicate.offhand
The field for theoffhand
record component.Modifier and TypeMethodDescriptionEntityEquipmentPredicate.chest()
Returns the value of thechest
record component.EntityEquipmentPredicate.feet()
Returns the value of thefeet
record component.EntityEquipmentPredicate.head()
Returns the value of thehead
record component.EntityEquipmentPredicate.legs()
Returns the value of thelegs
record component.EntityEquipmentPredicate.mainhand()
Returns the value of themainhand
record component.EntityEquipmentPredicate.offhand()
Returns the value of theoffhand
record component.ModifierConstructorDescriptionEntityEquipmentPredicate
(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6) -
Uses of ItemPredicate in net.minecraft.predicate.item
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemPredicate>
ItemPredicate.CODEC
Modifier and TypeMethodDescriptionstatic List<ItemPredicate>
ItemPredicate.deserializeAll
(@Nullable com.google.gson.JsonElement el) static Optional<ItemPredicate>
ItemPredicate.fromJson
(@Nullable com.google.gson.JsonElement el) Modifier and TypeMethodDescriptionstatic com.google.gson.JsonElement
ItemPredicate.toJson
(List<ItemPredicate> predicates)