-
Method Summary
Start listening in the world.
Start listening in the world.
default void
Stop listening in the world.
default void
Stop listening in the world.
default void
Stop listening in the world.
-
Method Details
-
startListening
default RadioListener startListening(net.minecraft.world.entity.Entity owner,
@Nullable
@Nullable UUID id)
Start listening in the world.
- Parameters:
owner - the Entity that will listen
id - the UUID of the listener
- Returns:
- The listener created.
-
startListening
Start listening in the world.
- Parameters:
location - the location to listen to
id - the UUID of the listener
- Returns:
- The listener created.
-
-
stopListening
default void stopListening(UUID owner,
boolean isClient)
Stop listening in the world.
- Parameters:
owner - the Entity that will stop listening
isClient - if to remove in client
-
stopListening
Stop listening in the world.
- Parameters:
location - the location of the listener to remove
-
stopListening
default void stopListening()
Stop listening in the world. Infers information from itself. Only call this on the server.