Package cn.nukkit.level.vibration
Class SimpleVibrationManager
java.lang.Object
cn.nukkit.level.vibration.SimpleVibrationManager
- All Implemented Interfaces:
VibrationManager
@PowerNukkitXOnly
@Since("1.19.21-r3")
public class SimpleVibrationManager
extends Object
implements VibrationManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(VibrationListener listener) void
callVibrationEvent
(VibrationEvent event) protected boolean
canVibrationArrive
(Level level, Vector3 from, Vector3 to) protected CompoundTag
createEntityTargetTag
(Entity entity) protected CompoundTag
createVec3fTag
(Vector3f vec3f) protected void
createVibration
(VibrationListener listener, VibrationEvent event) void
removeListener
(VibrationListener listener)
-
Field Details
-
listeners
-
level
-
-
Constructor Details
-
SimpleVibrationManager
-
-
Method Details
-
callVibrationEvent
- Specified by:
callVibrationEvent
in interfaceVibrationManager
-
addListener
- Specified by:
addListener
in interfaceVibrationManager
-
removeListener
- Specified by:
removeListener
in interfaceVibrationManager
-
createVibration
-
createVec3fTag
-
createEntityTargetTag
-
canVibrationArrive
-