Class ServerWaypointManager
java.lang.Object
net.minecraft.server.waypoints.ServerWaypointManager
- All Implemented Interfaces:
WaypointManager<WaypointTransmitter>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Table<ServerPlayer, WaypointTransmitter, WaypointTransmitter.Connection> private final Set<ServerPlayer> private final Set<WaypointTransmitter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(ServerPlayer player) voidprivate voidcreateConnection(ServerPlayer player, WaypointTransmitter waypoint) private static booleanisLocatorBarEnabledFor(ServerPlayer player) voidremakeConnections(WaypointTransmitter waypoint) voidremovePlayer(ServerPlayer player) voidtrackWaypoint(WaypointTransmitter waypoint) voiduntrackWaypoint(WaypointTransmitter waypoint) private voidupdateConnection(ServerPlayer player, WaypointTransmitter waypoint, WaypointTransmitter.Connection connection) voidupdatePlayer(ServerPlayer player) voidupdateWaypoint(WaypointTransmitter waypoint)
-
Field Details
-
waypoints
-
players
-
connections
-
-
Constructor Details
-
ServerWaypointManager
public ServerWaypointManager()
-
-
Method Details
-
trackWaypoint
- Specified by:
trackWaypointin interfaceWaypointManager<WaypointTransmitter>
-
updateWaypoint
- Specified by:
updateWaypointin interfaceWaypointManager<WaypointTransmitter>
-
untrackWaypoint
- Specified by:
untrackWaypointin interfaceWaypointManager<WaypointTransmitter>
-
addPlayer
-
updatePlayer
-
removePlayer
-
breakAllConnections
public void breakAllConnections() -
remakeConnections
-
transmitters
-
isLocatorBarEnabledFor
-
createConnection
-
updateConnection
private void updateConnection(ServerPlayer player, WaypointTransmitter waypoint, WaypointTransmitter.Connection connection)
-