Contents
Class CavePrefabContent
java.lang.Object
com.hypixel.hytale.builtin.worldgen.modifier.content.prefab.PrefabContent
com.hypixel.hytale.builtin.worldgen.modifier.content.prefab.CavePrefabContent
- All Implemented Interfaces:
Content
-
Nested Class Summary
Nested classes/interfaces inherited from class PrefabContent
PrefabContent.EntryNested classes/interfaces inherited from interface Content
Content.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<CavePrefabContent> static final StringFields inherited from interface Content
ARRAY_CODEC, EMPTY_ARRAY, TYPE_CODEC, TYPE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidapplyTo(ModifyEvent<T> event) Applies the content defined in this instance to a specifiedModifyEvent.type()The contentContent.Typethat this instance represents
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
CavePrefabContent
public CavePrefabContent()
-
-
Method Details
-
type
Description copied from interface:ContentThe contentContent.Typethat this instance represents- Specified by:
typein interfaceContent- Overrides:
typein classPrefabContent- Returns:
- The content type
-
applyTo
Description copied from interface:ContentApplies the content defined in this instance to a specifiedModifyEvent. The content will be conditionally loaded and appended to the event's mutable entries if successfully resolved through the event's loader.- Specified by:
applyToin interfaceContent- Specified by:
applyToin classPrefabContent- Type Parameters:
T- The type of entries managed by theModifyEvent.- Parameters:
event- The modification event to which this content should be applied. It provides access to a loader for resolving content, a list of entries to which the resolved content can be added, and relevant metadata.- Throws:
Exception- If an error occurs during content loading or modification.
-