Package ac.boar.anticheat.player
Class BoarPlayerManager<T>
java.lang.Object
java.util.AbstractMap<T,BoarPlayer>
java.util.HashMap<T,BoarPlayer>
ac.boar.anticheat.player.BoarPlayerManager<T>
- All Implemented Interfaces:
Serializable,Cloneable,Map<T,BoarPlayer>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ScheduledFuture<?> beginTicking(T session, Runnable ticker) protected abstract BoarAcknowledgmentTransportcreateAckTransport(BoarPlayer player) protected abstract Map<String, AttributeInstance> protected abstract EntityAccessorcreateEntityAccessor(T session) protected abstract InventoryAccessorcreateInventoryAccessor(T session) protected abstract ac.boar.api.anticheat.model.NetworkSessioncreateNetworkSession(T session) protected abstract WorldAccessorcreateWorldAccessor(T session) protected abstract BoarConnectiongetConnection(T session) protected abstract BlockMappingInfogetMappingInfo(T session) protected abstract EntitygetPlayerEntity(T session) protected voidinstallHandlers(BoarPlayer player, io.netty.channel.Channel channel) Installs the handlers that feed packets into Boar.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
BoarPlayerManager
public BoarPlayerManager()
-
-
Method Details
-
add
-
installHandlers
Installs the handlers that feed packets into Boar. The default inserts the bidirectional packet capture and the batch-tail acknowledgment injector directly into the bedrock channel pipeline, just after theBedrockPacketCodec.A platform that already exposes its own packet-event stream can override this to bridge that stream into
PacketEventsinstead, so it doesn't run a second netty codec on the same channel. -
createNetworkSession
-
getConnection
-
getPlayerEntity
-
getMappingInfo
-
createWorldAccessor
-
createEntityAccessor
-
createInventoryAccessor
-
createDefaultAttributes
-
createAckTransport
-
beginTicking
-