Package org.bukkit
Class Vibration
java.lang.Object
org.bukkit.Vibration
Represents a vibration from a Skulk sensor.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionVibration
(Location origin, Vibration.Destination destination, int arrivalTime) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the vibration arrival time in ticks.Get the vibration destination.Get the origin of the vibration.
-
Constructor Details
-
Vibration
public Vibration(@NotNull Location origin, @NotNull Vibration.Destination destination, @NotNull int arrivalTime)
-
-
Method Details
-
getOrigin
Get the origin of the vibration.- Returns:
- origin
-
getDestination
Get the vibration destination.- Returns:
- destination
-
getArrivalTime
public int getArrivalTime()Get the vibration arrival time in ticks.- Returns:
- arrival time
-