Interface SulfurCubeArchetypeRegistryEntry.Builder
- All Superinterfaces:
RegistryBuilder<SulfurCube.Archetype>, SulfurCubeArchetypeRegistryEntry
- Enclosing interface:
SulfurCubeArchetypeRegistryEntry
@Experimental
@NonExtendable
public static interface SulfurCubeArchetypeRegistryEntry.Builder
extends SulfurCubeArchetypeRegistryEntry, RegistryBuilder<SulfurCube.Archetype>
A mutable builder for the
SulfurCubeArchetypeRegistryEntry plugins may change in applicable registry events.
The following values are required for each builder:
-
Nested Class Summary
Nested classes/interfaces inherited from interface SulfurCubeArchetypeRegistryEntry
SulfurCubeArchetypeRegistryEntry.AttributeEntry, SulfurCubeArchetypeRegistryEntry.Builder, SulfurCubeArchetypeRegistryEntry.ContactDamage, SulfurCubeArchetypeRegistryEntry.ExplosionSettings, SulfurCubeArchetypeRegistryEntry.KnockbackModifiers, SulfurCubeArchetypeRegistryEntry.SoundSettings -
Method Summary
Modifier and TypeMethodDescriptionSets the attribute modifiers to apply to a sulfur cube of this archetype.Sets the attribute modifiers to apply to a sulfur cube of this archetype.buoyant(boolean buoyant) Sets the ability of the sulfur cube to float.Sets the damage a sulfur cube of this archetype can deal when in contact of another entity.Sets the explosion settings of a sulfur cube of this archetype.items(RegistryKeySet<ItemType> items) Sets the items a sulfur cube of this archetype can absorb.Sets the knockback modifiers a sulfur cube of this archetype will receive when knocked by another entity.Sets the sound settings of a sulfur cube of this archetype.Methods inherited from interface SulfurCubeArchetypeRegistryEntry
attributeModifiers, buoyant, contactDamage, explosion, items, knockbackModifiers, soundSettings
-
Method Details
-
items
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder items(RegistryKeySet<ItemType> items) Sets the items a sulfur cube of this archetype can absorb.- Parameters:
items- the items absorbable- Returns:
- this builder instance
- See Also:
-
attributeModifiers
@Contract(value="_ -> this", mutates="this") default SulfurCubeArchetypeRegistryEntry.Builder attributeModifiers(SulfurCubeArchetypeRegistryEntry.AttributeEntry... entries) Sets the attribute modifiers to apply to a sulfur cube of this archetype.- Parameters:
entries- the attribute modifiers to apply- Returns:
- this builder instance
- See Also:
-
attributeModifiers
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder attributeModifiers(Iterable<SulfurCubeArchetypeRegistryEntry.AttributeEntry> entries) Sets the attribute modifiers to apply to a sulfur cube of this archetype.- Parameters:
entries- the attribute modifiers to apply- Returns:
- this builder instance
- See Also:
-
buoyant
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder buoyant(boolean buoyant) Sets the ability of the sulfur cube to float.- Parameters:
buoyant- the ability of the sulfur cube to float- Returns:
- this builder instance
- See Also:
-
explosion
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder explosion(@Nullable SulfurCubeArchetypeRegistryEntry.ExplosionSettings settings) Sets the explosion settings of a sulfur cube of this archetype.- Parameters:
settings- the explosion settings- Returns:
- this builder instance
- See Also:
-
contactDamage
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder contactDamage(@Nullable SulfurCubeArchetypeRegistryEntry.ContactDamage damage) Sets the damage a sulfur cube of this archetype can deal when in contact of another entity.- Parameters:
damage- the contact damage- Returns:
- this builder instance
- See Also:
-
knockbackModifiers
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder knockbackModifiers(SulfurCubeArchetypeRegistryEntry.KnockbackModifiers modifiers) Sets the knockback modifiers a sulfur cube of this archetype will receive when knocked by another entity.- Parameters:
modifiers- the knockback modifiers- Returns:
- this builder instance
- See Also:
-
soundSettings
@Contract(value="_ -> this", mutates="this") SulfurCubeArchetypeRegistryEntry.Builder soundSettings(SulfurCubeArchetypeRegistryEntry.SoundSettings settings) Sets the sound settings of a sulfur cube of this archetype.- Parameters:
settings- the sound settings- Returns:
- this builder instance
- See Also:
-