Interface DefinitionContext
@NonExtendable
public interface DefinitionContext
Helpers a
BehaviorType.Parser uses to read the shared definition vocabulary, so every
behavior writes filters, stacks and recipe types the same way.-
Method Summary
Modifier and TypeMethodDescription@NotNull Result<ResourceMatcher> A filter plusamount.@NotNull Result<ResourcePredicate> Filters:{type: k},{types: [k…]},{category: k},{tag: k},{item: minecraft:x},{any: true},{all: […]},{any-of: […]},{not: {…}}.@NotNull Result<RecipeType<ProcessingRecipe>> processingRecipeType(@NotNull DataValue spec) @NotNull RegistryAccess@NotNull Result<ResourceStack> {type: k, amount: n}or{item: minecraft:x, amount: n}.
-
Method Details
-
registries
-
predicate
Filters:{type: k},{types: [k…]},{category: k},{tag: k},{item: minecraft:x},{any: true},{all: […]},{any-of: […]},{not: {…}}. -
matcher
A filter plusamount. -
stack
{type: k, amount: n}or{item: minecraft:x, amount: n}. -
processingRecipeType
@NotNull @NotNull Result<RecipeType<ProcessingRecipe>> processingRecipeType(@NotNull @NotNull DataValue spec)
-