public class Gravity extends Trait implements Toggleable
0
Constructor and Description |
---|
Gravity() |
Modifier and Type | Method and Description |
---|---|
void |
gravitate(boolean gravitate)
Set whether to disable gravity or not
|
boolean |
hasGravity() |
void |
run()
Called every tick if overridden.
|
boolean |
toggle() |
public void gravitate(boolean gravitate)
gravitate
- true = disable gravity, false = enable gravitypublic boolean hasGravity()
public void run()
Trait
public boolean toggle()
toggle
in interface Toggleable
Copyright © 2019. All rights reserved.