Interface JavaKineticWeapon
public interface JavaKineticWeapon
The kinetic weapon component is used to specify a spear-like attack when the item is in use.
- Since:
- 2.9.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for the kinetic weapon component.static interfaceA condition used during the attack of aJavaKineticWeapon. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaKineticWeapon.Builderbuilder()Creates a builder for the kinetic weapon component.static JavaKineticWeapon.Conditioncondition(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks) Creates a newJavaKineticWeapon.Condition.static JavaKineticWeapon.Conditioncondition(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates a newJavaKineticWeapon.Condition.@org.checkerframework.checker.index.qual.NonNegative intThe minimum use time, in ticks, required for the weapon to be active.@Nullable JavaKineticWeapon.ConditionThe condition that has to meet for the attacker to dismount the target.
-
Method Details
-
delayTicks
@org.checkerframework.checker.index.qual.NonNegative int delayTicks()The minimum use time, in ticks, required for the weapon to be active. Defaults to 0.- Returns:
- the minimum use time, in ticks, required for the weapon to be active
- Since:
- 2.9.3
-
dismountConditions
@Nullable JavaKineticWeapon.Condition dismountConditions()The condition that has to meet for the attacker to dismount the target.- Returns:
- the condition to dismount the target
- Since:
- 2.9.3
-
builder
Creates a builder for the kinetic weapon component.- Returns:
- a new builder
- Since:
- 2.9.3
-
condition
static JavaKineticWeapon.Condition condition(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks) Creates a newJavaKineticWeapon.Condition.- Parameters:
maxDurationTicks- the time in ticks after which the condition is no longer checked- Returns:
- the new
JavaKineticWeapon.Condition - Since:
- 2.9.3
- See Also:
-
condition
static JavaKineticWeapon.Condition condition(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates a newJavaKineticWeapon.Condition.- Parameters:
maxDurationTicks- the time in ticks after which the condition is no longer checkedminSpeed- the minimum speed of the attacker, in blocks per secondminRelativeSpeed- the minimum relative speed between the attacker and the target, in blocks per second- Returns:
- the new
JavaKineticWeapon.Condition - Since:
- 2.9.3
- See Also:
-