Package org.bukkit
Class Vibration
java.lang.Object
org.bukkit.Vibration
Represents a vibration from a Skulk sensor.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionVibration
(@NotNull Location origin, @NotNull Vibration.Destination destination, @org.jetbrains.annotations.NotNull int arrivalTime) Deprecated, for removal: This API element is subject to removal in a future version.Vibration
(@NotNull Vibration.Destination destination, @org.jetbrains.annotations.NotNull int arrivalTime) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the vibration arrival time in ticks.Get the vibration destination.Deprecated, for removal: This API element is subject to removal in a future version.unused as of 1.19
-
Constructor Details
-
Vibration
public Vibration(@NotNull @NotNull Vibration.Destination destination, @NotNull @org.jetbrains.annotations.NotNull int arrivalTime) -
Vibration
@Deprecated(forRemoval=true) public Vibration(@NotNull @NotNull Location origin, @NotNull @NotNull Vibration.Destination destination, @NotNull @org.jetbrains.annotations.NotNull int arrivalTime) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getOrigin
Deprecated, for removal: This API element is subject to removal in a future version.unused as of 1.19Get 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
-