Modifier and Type | Method and Description |
---|---|
protected Class<? extends Protocol> |
ViaListener.getRequiredPipeline() |
Modifier and Type | Method and Description |
---|---|
PacketWrapper |
PacketWrapper.apply(Direction direction,
State state,
int index,
List<Protocol> pipeline) |
PacketWrapper |
PacketWrapper.apply(Direction direction,
State state,
int index,
List<Protocol> pipeline,
boolean reverse)
Applies a pipeline from an index to the wrapper.
|
void |
PacketWrapper.send(Class<? extends Protocol> packetProtocol)
Send this packet to the associated user.
|
void |
PacketWrapper.send(Class<? extends Protocol> packetProtocol,
boolean skipCurrentPipeline)
Send this packet to the associated user.
|
void |
PacketWrapper.send(Class<? extends Protocol> packetProtocol,
boolean skipCurrentPipeline,
boolean currentThread)
Send this packet to the associated user.
|
io.netty.channel.ChannelFuture |
PacketWrapper.sendFuture(Class<? extends Protocol> packetProtocol)
Send this packet to the associated user.
|
void |
PacketWrapper.sendToServer(Class<? extends Protocol> packetProtocol) |
void |
PacketWrapper.sendToServer(Class<? extends Protocol> packetProtocol,
boolean skipCurrentPipeline) |
void |
PacketWrapper.sendToServer(Class<? extends Protocol> packetProtocol,
boolean skipCurrentPipeline,
boolean currentThread)
Send this packet to the server.
|
Constructor and Description |
---|
ViaListener(Class<? extends Protocol> requiredPipeline) |
Modifier and Type | Class and Description |
---|---|
class |
ProtocolPipeline |
class |
SimpleProtocol
Dummy protocol class for when you do not need any of the
existing packet type enums or automated channel mappings.
|
Modifier and Type | Field and Description |
---|---|
static Protocol |
ProtocolRegistry.BASE_PROTOCOL |
Modifier and Type | Method and Description |
---|---|
<P extends Protocol> |
ProtocolPipeline.getProtocol(Class<P> pipeClass) |
Modifier and Type | Method and Description |
---|---|
static Protocol |
ProtocolRegistry.getBaseProtocol(int serverVersion) |
static @Nullable Protocol |
ProtocolRegistry.getProtocol(Class<? extends Protocol> protocolClass)
Returns a protocol instance by its class.
|
Modifier and Type | Method and Description |
---|---|
List<Protocol> |
ProtocolPipeline.pipes() |
Modifier and Type | Method and Description |
---|---|
void |
ProtocolPipeline.add(Protocol protocol)
Add a protocol to the current pipeline
This will call the
init(UserConnection) method. |
static boolean |
ProtocolRegistry.isBaseProtocol(Protocol protocol) |
static void |
ProtocolRegistry.registerBaseProtocol(Protocol baseProtocol,
com.google.common.collect.Range<Integer> supportedProtocols)
Registers a base protocol.
|
static void |
ProtocolRegistry.registerProtocol(Protocol protocol,
List<Integer> supported,
int output)
Register a protocol
|
static void |
ProtocolRegistry.registerProtocol(Protocol protocol,
ProtocolVersion supported,
ProtocolVersion output)
Register a protocol
|
Modifier and Type | Method and Description |
---|---|
static void |
ProtocolRegistry.addMappingLoaderFuture(Class<? extends Protocol> protocolClass,
Class<? extends Protocol> dependsOn,
Runnable runnable) |
static void |
ProtocolRegistry.addMappingLoaderFuture(Class<? extends Protocol> protocolClass,
Class<? extends Protocol> dependsOn,
Runnable runnable) |
static void |
ProtocolRegistry.addMappingLoaderFuture(Class<? extends Protocol> protocolClass,
Runnable runnable) |
static void |
ProtocolRegistry.completeMappingDataLoading(Class<? extends Protocol> protocolClass)
Ensure that mapping data for that protocol has already been loaded, completes it otherwise.
|
boolean |
ProtocolPipeline.contains(Class<? extends Protocol> pipeClass)
Check if the pipeline contains a protocol
|
static @Nullable CompletableFuture<Void> |
ProtocolRegistry.getMappingLoaderFuture(Class<? extends Protocol> protocolClass) |
static @Nullable Protocol |
ProtocolRegistry.getProtocol(Class<? extends Protocol> protocolClass)
Returns a protocol instance by its class.
|
Modifier and Type | Field and Description |
---|---|
protected Protocol |
RecipeRewriter.protocol |
protected Protocol |
SoundRewriter.protocol |
protected Protocol |
ComponentRewriter.protocol |
protected Protocol |
MetadataRewriter.protocol |
Modifier and Type | Method and Description |
---|---|
<T extends Protocol> |
ComponentRewriter.getProtocol() |
Constructor and Description |
---|
BlockRewriter(Protocol protocol,
Type<Position> positionType) |
ComponentRewriter(Protocol protocol) |
ItemRewriter(Protocol protocol,
ItemRewriter.RewriteFunction toClient,
ItemRewriter.RewriteFunction toServer) |
MetadataRewriter(Protocol protocol,
Class<? extends EntityTracker> entityTrackerClass) |
RecipeRewriter(Protocol protocol,
ItemRewriter.RewriteFunction rewriter) |
SoundRewriter(Protocol protocol) |
SoundRewriter(Protocol protocol,
IdRewriteFunction idRewriter) |
StatisticsRewriter(Protocol protocol,
@Nullable IdRewriteFunction entityRewriter) |
TagRewriter(Protocol protocol,
@Nullable IdRewriteFunction entityRewriter) |
Constructor and Description |
---|
ViaBukkitListener(org.bukkit.plugin.Plugin plugin,
Class<? extends Protocol> requiredPipeline) |
Modifier and Type | Class and Description |
---|---|
class |
BaseProtocol |
class |
BaseProtocol1_16 |
class |
BaseProtocol1_7 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_10To1_9_3_4 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_11_1To1_11 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_11To1_10 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_12_1To1_12 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_12_2To1_12_1 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_12To1_11_1 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_13_1To1_13 |
Modifier and Type | Method and Description |
---|---|
static void |
WorldPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_13_2To1_13_1 |
Modifier and Type | Method and Description |
---|---|
static void |
WorldPackets.register(Protocol protocol) |
static void |
InventoryPackets.register(Protocol protocol) |
static void |
EntityPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_13To1_12_2 |
Constructor and Description |
---|
ComponentRewriter1_13(Protocol protocol) |
RecipeRewriter1_13_2(Protocol protocol,
ItemRewriter.RewriteFunction rewriter) |
Modifier and Type | Method and Description |
---|---|
static void |
WorldPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_14_1To1_14 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_14_2To1_14_1 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_14_3To1_14_2 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_14_4To1_14_3 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_14To1_13_2 |
Constructor and Description |
---|
ComponentRewriter1_14(Protocol protocol) |
RecipeRewriter1_14(Protocol protocol,
ItemRewriter.RewriteFunction rewriter) |
Modifier and Type | Method and Description |
---|---|
static void |
PlayerPackets.register(Protocol protocol) |
static void |
InventoryPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_15_1To1_15 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_15_2To1_15_1 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_15To1_14_4 |
Modifier and Type | Method and Description |
---|---|
static void |
PlayerPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_16_1To1_16 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_16_2To1_16_1 |
Modifier and Type | Method and Description |
---|---|
static void |
WorldPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_16_3To1_16_2 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_16_4To1_16_3 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_16To1_15_2 |
Constructor and Description |
---|
RecipeRewriter1_16(Protocol protocol,
ItemRewriter.RewriteFunction rewriter) |
TranslationMappings(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_9_1_2To1_9_3_4 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_9_1To1_9 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_9_3To1_9_1_2 |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_9To1_8 |
Modifier and Type | Method and Description |
---|---|
static void |
WorldPackets.register(Protocol protocol) |
static void |
InventoryPackets.register(Protocol protocol) |
Modifier and Type | Class and Description |
---|---|
class |
Protocol1_9To1_9_1 |
Constructor and Description |
---|
ViaSpongeListener(SpongePlugin plugin,
Class<? extends Protocol> requiredPipeline) |
Copyright © 2016–2021. All rights reserved.