GeyserDefinitionEntry

public final class GeyserDefinitionEntry extends Record

One Geyser custom-item-v2 entry produced by the generic pipeline. Modern item-model mappings use type=definition plus model; pre-1.21.4 custom-model-data mappings use type=legacy plus custom_model_data.

Parameters

bedrockIdentifier

Bedrock-side identifier, e.g. "elitemobs:gear/bronze_sword". Per Rainbow's BedrockItemMapper.java:256-261, when the source model namespace is non-vanilla, the namespaced identifier is forwarded to Bedrock unchanged (the / stays in the path).

javaItemModel

The Java item_model component value, e.g. "elitemobs:gear/bronze_sword".

predicates

Ordered list of predicates accumulated from the model tree walk. Emitted for modern entries. A legacy entry retains its synthetic source predicate only for deterministic identity/deduplication; custom_model_data is its Geyser matcher.

iconKey

Key into item_texture.json. Per Rainbow's GeyserBaseDefinition.textureName (defaults to bedrockSafeIdentifier(bedrockIdentifier)), this is the Rainbow-safe form of the bedrock identifier: ':' ->'.', '/' ->'_'.

handheld

Drives bedrock_options.display_handheld; true iff the resolved model's parent chain hits item/handheld*.

legacyCustomModelData

exact pre-1.21.4 custom-model-data value, or null for a modern item-model definition

Constructors

Link copied to clipboard
public void GeyserDefinitionEntry(String bedrockIdentifier, String javaItemModel, List<PredicateRecord> predicates, String iconKey, boolean handheld, BigDecimal legacyCustomModelData)

Functions

Link copied to clipboard
public static GeyserDefinitionEntry definition(String bedrockIdentifier, String javaItemModel, List<PredicateRecord> predicates, String iconKey, boolean handheld)
Link copied to clipboard
public boolean isLegacy()
Link copied to clipboard
public static GeyserDefinitionEntry legacy(String bedrockIdentifier, BigDecimal customModelData, List<PredicateRecord> sourcePredicates, String iconKey, boolean handheld)

Inherited functions

Link copied to clipboard
public abstract boolean equals(Object p)
Link copied to clipboard
public abstract int hashCode()
Link copied to clipboard
public abstract String toString()