Changes

916 bytes added ,  16:11, 27 May 2023
Move distributor list into a table
Line 21: Line 21:  
*  
 
*  
   −
Here is a list of distributors available:
+
Here is a list of Forge provided <code>PacketDistributor</code>s:
   −
<br />
+
{| class="wikitable sortable" border=1
* <u>PLAYER:</u>Send to the specified Player.
+
!<code>PacketDistributor</code> !!Supplied Value !!Description
* <u>DIMENSION:</u>Send to everyone in the specified dimension.
+
|-
* <u>NEAR:</u>Send to everyone near the specified <code>PacketDistributor$TargetPoint</code>
+
<code>PLAYER</code>                    || <code>ServerPlayer</code>       || Send to the specified player .
* <u>ALL:</u>Send to everyone
+
|-
* <u>SERVER:</u>Send to the server(from client)
+
<code>DIMENSION</code>                  || <code>ResourceKey<Level></code> || Send to all players within the specified dimension.
* <u>TRACKING_ENTITY:</u>Send to all tracking the specified Entity<br />
+
|-
* <u>TRACKING_ENTITY_AND_SELF:</u>Send to all tracking the specified Entity and Player
+
<code>NEAR</code>                       || <code>TargetPoint</code>       || Send to all players within the range of the target point.
* <u>TRACKING_CHUNK:</u>Send to all tracking the specified Chunk
+
|-
* <u>NMLIST:</u>Send to each NetworkManager instance in the specified List
+
<code>ALL</code>                       || None                            || Send to all currently logged in players.
 +
|-
 +
<code>SERVER</code>                     || None                            || Send from the player client to the server. This is the only distributor that should be used for client -> server communication.
 +
|-
 +
<code>TRACKING_ENTITY</code>            || <code>Entity</code>            || Send to all players currently tracking the specified entity.
 +
|-
 +
|  <code>TRACKING_ENTITY_AND_SELF</code>   || <code>Entity</code>             || Send to all players currently tracking the specified entity and the entity itself, if it is a player.
 +
|-
 +
<code>TRACKING_CHUNK</code>            || <code>LevelChunk</code>        || Send to all players tracking the specified chunk.
 +
|-
 +
<code>NMLIST</code>                    || <code>List<Connection></code>   || Send to the listed connections. Each connection is typically an individual player.
 +
|-
 +
|}