Interface SulfurCubeArchetypeRegistryEntry.KnockbackModifiers
- Enclosing interface:
SulfurCubeArchetypeRegistryEntry
@Experimental
@NonExtendable
public static interface SulfurCubeArchetypeRegistryEntry.KnockbackModifiers
The knockback modifiers a sulfur cube of this archetype will receive
when knocked by another entity.
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the horizontal base power of the knockback to receive before all other environmental/contextual changes.of(float horizontalPower, float verticalPower) Creates a new knockback modifiers instance based on the passed values.floatReturns the vertical base power of the knockback to receive before all other environmental/contextual changes.
-
Method Details
-
horizontalPower
float horizontalPower()Returns the horizontal base power of the knockback to receive before all other environmental/contextual changes.- Returns:
- the horizontal base power of the knockback to receive before all other environmental/contextual changes
-
verticalPower
float verticalPower()Returns the vertical base power of the knockback to receive before all other environmental/contextual changes.- Returns:
- the vertical base power of the knockback to receive before all other environmental/contextual changes
-
of
@Contract(value="_, _ -> new", pure=true) static SulfurCubeArchetypeRegistryEntry.KnockbackModifiers of(float horizontalPower, float verticalPower) Creates a new knockback modifiers instance based on the passed values.- Parameters:
horizontalPower- the horizontal base power of the knockback, as returned byhorizontalPower()verticalPower- the vertical base power of the knockback, as returned byverticalPower()- Returns:
- the created instance
-