Class VibrationSystem.Listener
java.lang.Object
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener
- All Implemented Interfaces:
GameEventListener
- Enclosing interface:
VibrationSystem
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.GameEventListener
GameEventListener.DeliveryMode, GameEventListener.Holder<T extends GameEventListener>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
distanceBetweenInBlocks
(BlockPos p_282413_, BlockPos p_281960_) void
forceScheduleVibration
(ServerLevel p_282808_, GameEvent p_281875_, GameEvent.Context p_281652_, Vec3 p_281530_) int
boolean
handleGameEvent
(ServerLevel p_282254_, GameEvent p_283599_, GameEvent.Context p_283664_, Vec3 p_282426_) private static boolean
isOccluded
(Level p_283225_, Vec3 p_283328_, Vec3 p_283163_) private void
scheduleVibration
(ServerLevel p_282037_, VibrationSystem.Data p_283229_, GameEvent p_281778_, GameEvent.Context p_283344_, Vec3 p_281758_, Vec3 p_282990_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.gameevent.GameEventListener
getDeliveryMode
-
Field Details
-
system
-
-
Constructor Details
-
Listener
-
-
Method Details
-
getListenerSource
- Specified by:
getListenerSource
in interfaceGameEventListener
-
getListenerRadius
public int getListenerRadius()- Specified by:
getListenerRadius
in interfaceGameEventListener
-
handleGameEvent
public boolean handleGameEvent(ServerLevel p_282254_, GameEvent p_283599_, GameEvent.Context p_283664_, Vec3 p_282426_) - Specified by:
handleGameEvent
in interfaceGameEventListener
-
forceScheduleVibration
public void forceScheduleVibration(ServerLevel p_282808_, GameEvent p_281875_, GameEvent.Context p_281652_, Vec3 p_281530_) -
scheduleVibration
private void scheduleVibration(ServerLevel p_282037_, VibrationSystem.Data p_283229_, GameEvent p_281778_, GameEvent.Context p_283344_, Vec3 p_281758_, Vec3 p_282990_) -
distanceBetweenInBlocks
-
isOccluded
-