Package-level declarations
Types
Indicates a machine has updated an inventory slot.
Represents the blocks that a tool made of some material is allowed to break.
A set containing elements with associated weights. You can retrieve either a specified subset or a single element randomly, with the probability of each element being chosen proportional to its weight.
Properties
A shorthand for a commonly used VirtualInventory handler which prevents players from removing items from it.
Same as IMMEDIATE_FACES but includes diagonal faces, not including the vertical directions.
Functions
Does not include first or last block
Unidirectional, meaning if the closest point is 'behind' the starting point, returns the distance from the starting point.
Finds a Rebar item in an inventory. Use this to find Rebar items instead of traditional find methods, because this will compare Rebar IDs.
Small helper function to convert a minimessage string (eg: '
(Heuristically) checks whether an event is 'fake' (by checking if it has 'Fake' in its name)
Checks whether a NamespacedKey is from addon
Returns all the immediate faces that are perpendicular to the given face
Same as persistentData but with a default value that is constant
Acts as a property delegate for stuff contained inside a PersistentDataContainer For example:
Rotates face to be relative to referenceFace.
Rotates vector to face a direction
Schedules the entity to be removed next tick
Wrapper around PersistentDataContainer.set that allows nullable values to be passed
Converts an orthogonal vector to a BlockFace
Attaches arguments to a component and all its children.