All Classes and Interfaces
Class
Description
Careful with BoolData: While it works for specifying boolean attributes in JSON syntax,
using it in Tags will instead use a
ByteData object.Marks a method as being responsible for dumping all valid values for a specific bracket handler.
This class contains the "simple" Bracket handlers from CraftTweaker.
Marks a method as being responsible for resolving a particular bracket.
Contains all info on Bracket resolvers, validators and dumpers
Marks a method as being responsible for validating a bracket expression for a bracket handler.
Holds all
IRecipeComponents that CraftTweaker makes available directly.Holds
IRecipeComponents representing inputs for the various recipes.Holds
IRecipeComponents that simply encode recipe metadata.Holds
IRecipeComponents representing data used to determine the output of recipes.Holds
IRecipeComponents representing data used by recipes during their processing.Wraps an exception that has been thrown by an
IEventBus while trying to dispatch an event to various
listeners.Represents a character stream.
Converts a value from X? to X.
This is a helper interface for every object that is returned by a BEP!
Wire that provides a way to adapt a platform-specific event to a common event, allowing it to fire on both
platform-specific buses and common buses as needed.
Provide a series of
Logger instances for the most common systems.Holds a set of implementations of
ILootModifier of common usage.Wire that allows the creation of a wireless
IEventBus.Compare expression for basic types.
Used to indicate comparison types.
Represents a compiled DFA.
An interface exposing methods to handle setting and removing DataComponents.
Filters recipes that have the specified
IRecipeComponent, optionally with a check on its value.Marks an action as being executed by CraftTweaker.
Provides access to the main CraftTweaker API.
Marks the class as a CraftTweaker plugin, which needs to be detected and loaded by CraftTweaker.
Data that is saved and loaded with the world when it is saved and loaded from disk.
Lets you add new Cauldron interactions.
Fired when a Cauldron is interacted with.
FluidIngredient that facilitates accepting either a single, or multiple
IFluidStacks, s
or Many<KnownTag<net.minecraft.world.level.material.Fluid>>s.Allows scripts to send data from the server to the client.
Context that is provided when data is received from the network.
A function that is fired when data is received from the network
An example receiver that just prints the data received would look like this:
(data, context) => println(data.getAsString());
Filters recipes according to a custom set of rules.
Creates a simple instance of an
IDecomposedRecipe with the given components.Implements a DFA.
Represents a state in a DFA.
Represents a marker object for data.
An AdvancementHolder links an
Advancement to a ResourceLocation.This expansion specifically targets BlockTags.
Represents a source of a command execution, such as an
Entity or the MinecraftServer.An interface that stores DataComponents
A map of
DataComponentTypes to their values.Stores information about changes that should be made to a
DataComponentMap, keeping track of which DataComponentTypes should be added or removed.Represents a type of data that game objects can have.
Used to denote armor items that can be worn.
This expansion specifically targets FluidTags.
Represents the properties of a food item.
A builder to help create new food properties.
Represents a possible effect of the food properties.
This is the vanilla ingredient type.
This is the vanilla ItemStack.
This expansion specifically targets itemTags.
This is not an event that you can listen to, this just holds fields for use in
LevelAccessor.levelEvent(int, BlockPos, int)Creates a new
LootContext using a builder style pattern.A loot context param is provided to a
LootContext allowing it to supply information to functions.These are pre-registered params that are used by vanilla.
A set of
LootContextParam that are required for a specific loot table to roll.These are pre-registered param sets that are used by vanilla.
A loot table is used to determine what is dropped when the game needs to drop loot.
This expansion specifically targets itemTags.
This expansion specifically targets itemTags.
A MobEffectInstance is a wrapper around a
MobEffect that has a duration, amplifier, and other properties.Represents the push reaction of a block.
Holds
Recipe recipe and a ResourceLocation id.Represents the tool properties of an item, including mining speed, damage per block, and rules for specific blocks.
Represents a rule that defines how a tool interacts with specific blocks.
Holds a
DataComponentType and its value.This recipe manager allows you to perform removal actions over all recipe managers.
Holds various utilities to deal with
MethodHandles and VarHandles for reflection purposes.Indicates which type of access needs to be performed on the method or field.
Indicates that an error occurred while attempting to invoke a specific
MethodHandle.Represents the invocation to be carried out on the method handle.
Represents the invocation to be carried out on the method handle.
Holds the names that are supposed to be used to locate the target.
Indicates that an error occurred while attempting to build a
MethodHandle or VarHandle.Represents an action that is to be executed through a ZenCode script.
Provides information related to a native type registered to ZenCode.
Information related to a bracket dumper.
Handles registration of parsers for bracket expressions.
Holds information relative to a dumper for a specific bracket expression.
Handles registration of commands for the
/ct main command.Represents an operation that is responsible for construction of the command given a builder.
Default interface for Registry based handlers as they can all remove recipes by ResourceLocation.
Identifies a CraftTweaker Plugin.
Provides access to information stored by all CraftTweaker registries.
Used to specify what "type" of IData this is.
Represents a recipe that has been decomposed into
IRecipeComponents.Represents a bus on which events of a specific type can be posted.
Manages the wiring of an
IEventBus in order to construct a wired event bus.Determines whether an event of the given type has been canceled or not.
Manages the registration of additional information for events and event buses.
Holds all information pertaining to events and event buses.
Represents information related to a specific native executable reference registered to ZenCode.
Represents an
ITargetingFilter that can be applied by the user onto a Replacer.Represents a token associated to a particular
IEventBus and handler that allows for the removal of
the handler from the event bus.The CraftTweaker Ingredient class which is used to power our recipes and ItemStack matching.
An IIngredient which matches all items
Consists of an ingredient and an amount.
Handles registration of the various components required to integrate ZenCode scripts and Java code.
Handles registration of additional listeners that will be invoked at certain points during CraftTweaker's lifecycle.
Manages the registration of
IScriptLoaders for CraftTweaker.Manages the
Logger instances for the various systems.Represents a modifier that gets applied to the loot dropped by a loot table.
Mutable version of
IScriptRunInfo that allows changing certain information.Represents a registry holding information for native types known to the ZenCode environment.
Visitor to determine if a type has inference blocking type parameters.
Used to bust the
Ingredient#itemStacks cache when the Ingredient was resolved during a Server reload (When an instance of TagManager is available.A task that will run immediately.
Identifies a preprocessor for an
IScriptFile.Represents a preprocessor match.
Represents a part of a recipe after it has been decomposed.
Manages the registration of
IRecipeComponents for CraftTweaker.Represents a handler for a specific type of recipe indicated by the generic parameter.
Annotates an
IRecipeHandler indicating which recipe classes it is able to handle.Container for the
IRecipeHandler.For annotation.Manages the registration of
IRecipeHandlers for CraftTweaker.Default interface for Registry based handlers as they can all remove recipes by ResourceLocation.
Handles the registration of various components used specifically for recipe replacement.
Holds all registries related specifically to
Replacers.Represents an action that should be executed on every game reload, instead of only once.
Represents a script file which will be read during an
IScriptRun.Identifies a script loader.
Identifies a script load source.
Manages the registration of
IScriptLoadSources for CraftTweaker.Represents an execution of one or more
IScriptFiles.Gives information relative to a specific
IScriptRun.Manages the creation and lifecycle of
IScriptRuns, while also dealing with IActions.Configures the list of
JavaNativeModules for a particular IScriptRun.Creates a
JavaNativeModule from the given information.Manages the registration of
IScriptRunModuleConfigurators for the various loaders.A task in a
Sequence.Manages the registration of taggable elements and their managers used for tags.
Represents a filter applied to the recipe list.
Represents a way of targeting components for replacement.
Represents an action that should be run on every game reload and that requires additional cleanup code.
Manages the registration of components necessary to manipulate villager trades.
Holds information related to the various classes and expansions exposed to ZenCode.
Identifies raw information on the classes registered to a specific
IScriptLoader.A known tag is a tag whose element is known and has been registered as Taggable.
The main entry point for everything loot related.
Manager for loot modifiers.
Manager for loot tables.
Used to represent data with an amount.
Defines how a recipe should be mirrored.
Represents a mod in the game.
Additional methods for easier modification of block-related loot tables.
Additional methods for easier modification of block state-related loot tables.
Additional methods for easier modification of entity-related loot tables.
Additional methods for easier modification of a specific loot table.
Holds information on all the mods that are registered.
Filters recipes that have been created by the given set of mods.
Filters recipes that match a specific pattern on their name.
Set of utility methods related to names and naming in general.
Holds information relative to a specific native type that is yet to be registered to ZenCode.
Holds information relative to a specific native constructor that should be exposed to ZenCode.
Holds information relative to a specific native method that should be exposed to ZenCode.
Holds information relative to a specific parameter of a native method or
native constructor that is exposed to ZenCode.
Represents an NFA.
Represents an NFA state.
Inverts a filtering rule.
Enum used to indicate operator type.
Holds various utilities related to
Path manipulation.Used to represent data with an attached percentage (think an ItemStack with a 50% chance of being outputted).
Represents the phase at which a specific event is being posted.
Used for post-increment and post-decrement.
Marks the class as a preprocessor.
Holds equality checkers for the various builtin components.
This class acts as a wrapper for the (currently) two recipe maps that vanilla stores recipes in:
The
recipes map, which is used for actual recipe lookups.Indicates a request that needs to be carried out by the
Replacer.#replace toReplace replaceWithHandles the replacement of
IRecipeComponents for Recipes.Bracket handlers specifically for resource location as it is used in multiple loaders.
Holds the configuration that should be followed during automatic script discovery for the creation of a
IScriptRun.Represents a callback that can be used to retain the results of the discovery process.
Specifies the behavior to be used when a file with a suspicious name is encountered.
Holds information relative to the configuration for a specific
IScriptRun.Indicates the kind of run that the
IScriptRun will perform.A sequence is a series of tasks that run after each other when the actor ticks.
A builder for
Sequence.A SequenceContext provides more data to
Sequences and allows a sequence to be stopped from inside a task.Manages
Sequences, handles adding, removing and ticking.A task that will sleep for the given amount of ticks.
A task that will sleep until its condition is met.
Basic String utils exposed to ZenScript and for use in Java code.
Using to cast a base type to a class type.
Using to cast a class type to a base type.
A taggable element is a class which can be used in a vanilla Tag.
A TagManagerFactory is used to create custom
ITagManagers instead of using the default managers (KnownTagManager or UnknownTagManager)Visitor to convert from Vanilla's Tag to CraftTweaker's Data system.
Represents a token.
Represents a token stream.
Represents a token type.
Used instead of org.openzen.zencode.java.ZenCodeType.Expansion if you don't know the zs name of the type.
Filters recipes based on their
IRecipeManager.An unknown tag is a tag whose element is not known or has not been registered as Taggable.
An IIngredient that wraps a vanilla Ingredient.
Marks a class as being an event accessible to ZenCode scripts, allowing for automatic discovery.
Marks a field within a class as being an event bus that should be made available to ZenCode scripts, allowing for
automatic discovery.
Enables automatic determination of the type of event carried by an event bus.
Marks a class as carrying a series of
IEventBuses that should
be made available to ZenCode scripts, allowing for automatic discovery.Manages the registration and handling of custom handlers for the various events of the game.
Represents a phase in which an event is fired and can be listened to.
Marks a class as requiring registration to ZenCode.
Holds information relative to a specific type that still needs to be registered to ZenCode.
Indicates the kind of type that should be exposed to ZenCode.