Modifier and Type | Method and Description |
---|---|
void |
ClientPlayNetHandler.sendPacket(IPacket<?> packetIn) |
Modifier and Type | Method and Description |
---|---|
void |
ClientWorld.sendPacketToServer(IPacket<?> packetIn) |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
LivingEntity.createSpawnPacket() |
IPacket<?> |
AreaEffectCloudEntity.createSpawnPacket() |
abstract IPacket<?> |
Entity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
EnderDragonPartEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
LightningBoltEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
FallingBlockEntity.createSpawnPacket() |
IPacket<?> |
BoatEntity.createSpawnPacket() |
IPacket<?> |
EnderCrystalEntity.createSpawnPacket() |
IPacket<?> |
ItemFrameEntity.createSpawnPacket() |
IPacket<?> |
TNTEntity.createSpawnPacket() |
IPacket<?> |
EyeOfEnderEntity.createSpawnPacket() |
IPacket<?> |
ExperienceOrbEntity.createSpawnPacket() |
IPacket<?> |
ItemEntity.createSpawnPacket() |
IPacket<?> |
FireworkRocketEntity.createSpawnPacket() |
IPacket<?> |
PaintingEntity.createSpawnPacket() |
IPacket<?> |
LeashKnotEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
AbstractMinecartEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
ServerPlayerEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
void |
ServerPlayerEntity.sendChunkLoad(ChunkPos p_213844_1_,
IPacket<?> p_213844_2_,
IPacket<?> p_213844_3_) |
void |
ServerPlayerEntity.sendChunkLoad(ChunkPos p_213844_1_,
IPacket<?> p_213844_2_,
IPacket<?> p_213844_3_) |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
LlamaSpitEntity.createSpawnPacket() |
IPacket<?> |
ShulkerBulletEntity.createSpawnPacket() |
IPacket<?> |
FishingBobberEntity.createSpawnPacket() |
IPacket<?> |
DamagingProjectileEntity.createSpawnPacket() |
IPacket<?> |
EvokerFangsEntity.createSpawnPacket() |
IPacket<?> |
ThrowableEntity.createSpawnPacket() |
IPacket<?> |
AbstractArrowEntity.createSpawnPacket() |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
AbstractMapItem.getUpdatePacket(ItemStack stack,
World worldIn,
PlayerEntity player) |
IPacket<?> |
FilledMapItem.getUpdatePacket(ItemStack stack,
World worldIn,
PlayerEntity player) |
Modifier and Type | Field and Description |
---|---|
private IPacket<?> |
NetworkManager.QueuedPacket.packet |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.Object2IntMap<java.lang.Class<? extends IPacket<T>>> |
ProtocolType.PacketList.field_229715_a_ |
private java.util.List<java.util.function.Supplier<? extends IPacket<T>>> |
ProtocolType.PacketList.field_229716_b_ |
private static java.util.Map<java.lang.Class<? extends IPacket<?>>,ProtocolType> |
ProtocolType.STATES_BY_CLASS |
Modifier and Type | Method and Description |
---|---|
<P extends IPacket<T>> |
ProtocolType.PacketList.func_229721_a_(java.lang.Class<P> p_229721_1_,
java.util.function.Supplier<P> p_229721_2_) |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
ProtocolType.PacketList.func_229718_a_(int p_229718_1_) |
IPacket<?> |
ProtocolType.getPacket(PacketDirection direction,
int packetId) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.Class<? extends IPacket<?>>> |
ProtocolType.PacketList.func_229717_a_() |
Modifier and Type | Method and Description |
---|---|
protected void |
NetworkManager.channelRead0(io.netty.channel.ChannelHandlerContext p_channelRead0_1_,
IPacket<?> p_channelRead0_2_) |
static <T extends INetHandler> |
PacketThreadUtil.checkThreadAndEnqueue(IPacket<T> packetIn,
T processor,
ServerWorld worldIn) |
static <T extends INetHandler> |
PacketThreadUtil.checkThreadAndEnqueue(IPacket<T> packetIn,
T processor,
ThreadTaskExecutor<?> executor) |
private void |
NetworkManager.dispatchPacket(IPacket<?> inPacket,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> futureListeners) |
protected void |
NettyPacketEncoder.encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
IPacket<?> p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_) |
static ProtocolType |
ProtocolType.getFromPacket(IPacket<?> packetIn) |
java.lang.Integer |
ProtocolType.getPacketId(PacketDirection direction,
IPacket<?> packetIn) |
private static <T extends INetHandler> |
NetworkManager.processPacket(IPacket<T> p_197664_0_,
INetHandler p_197664_1_) |
void |
NetworkManager.sendPacket(IPacket<?> packetIn) |
void |
NetworkManager.sendPacket(IPacket<?> packetIn,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> p_201058_2_) |
Constructor and Description |
---|
QueuedPacket(IPacket<?> p_i48604_1_,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> p_i48604_2_) |
Modifier and Type | Class and Description |
---|---|
class |
CHandshakePacket |
Modifier and Type | Class and Description |
---|---|
class |
CCustomPayloadLoginPacket |
class |
CEncryptionResponsePacket |
class |
CLoginStartPacket |
Modifier and Type | Class and Description |
---|---|
class |
SCustomPayloadLoginPacket |
class |
SDisconnectLoginPacket |
class |
SEnableCompressionPacket |
class |
SEncryptionRequestPacket |
class |
SLoginSuccessPacket |
Modifier and Type | Method and Description |
---|---|
void |
ServerPlayNetHandler.sendPacket(IPacket<?> packetIn) |
void |
ServerPlayNetHandler.sendPacket(IPacket<?> packetIn,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> futureListeners) |
Modifier and Type | Class and Description |
---|---|
class |
CPingPacket |
class |
CServerQueryPacket |
Modifier and Type | Class and Description |
---|---|
class |
SPongPacket |
class |
SServerInfoPacket |
Modifier and Type | Method and Description |
---|---|
java.util.List<IPacket<?>> |
ServerScoreboard.getCreatePackets(ScoreObjective objective) |
java.util.List<IPacket<?>> |
ServerScoreboard.getDestroyPackets(ScoreObjective p_96548_1_) |
Modifier and Type | Method and Description |
---|---|
void |
PlayerList.sendPacketToAllPlayers(IPacket<?> packetIn) |
void |
PlayerList.sendPacketToAllPlayersInDimension(IPacket<?> packetIn,
DimensionType dimension) |
void |
PlayerList.sendToAllNearExcept(PlayerEntity except,
double x,
double y,
double z,
double radius,
DimensionType dimension,
IPacket<?> packetIn) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Consumer<IPacket<?>> |
TrackedEntity.packetConsumer |
Modifier and Type | Method and Description |
---|---|
private void |
TrackedEntity.sendPacket(IPacket<?> p_219451_1_) |
void |
World.sendPacketToServer(IPacket<?> packetIn) |
Modifier and Type | Method and Description |
---|---|
void |
TrackedEntity.sendSpawnPackets(java.util.function.Consumer<IPacket<?>> p_219452_1_) |
Constructor and Description |
---|
TrackedEntity(ServerWorld p_i50704_1_,
Entity p_i50704_2_,
int p_i50704_3_,
boolean p_i50704_4_,
java.util.function.Consumer<IPacket<?>> p_i50704_5_) |
Modifier and Type | Method and Description |
---|---|
private void |
ChunkManager.sendChunkData(ServerPlayerEntity player,
IPacket<?>[] packetCache,
Chunk chunkIn) |
private boolean |
ServerWorld.sendPacketWithinDistance(ServerPlayerEntity player,
boolean longDistance,
double posX,
double posY,
double posZ,
IPacket<?> packet) |
protected void |
ChunkManager.sendToAllTracking(Entity p_219222_1_,
IPacket<?> p_219222_2_) |
void |
ServerChunkProvider.sendToAllTracking(Entity entityIn,
IPacket<?> packet) |
void |
ChunkManager.EntityTracker.sendToAllTracking(IPacket<?> p_219391_1_) |
private void |
ChunkHolder.sendToTracking(IPacket<?> packetIn,
boolean boundaryOnly) |
protected void |
ChunkManager.sendToTrackingAndSelf(Entity p_219225_1_,
IPacket<?> p_219225_2_) |
void |
ServerChunkProvider.sendToTrackingAndSelf(Entity entityIn,
IPacket<?> packet) |
void |
ChunkManager.EntityTracker.sendToTrackingAndSelf(IPacket<?> p_219392_1_) |
protected void |
ChunkManager.setChunkLoadedAtClient(ServerPlayerEntity player,
ChunkPos chunkPosIn,
IPacket<?>[] packetCache,
boolean wasLoaded,
boolean load) |
Modifier and Type | Method and Description |
---|---|
IPacket<?> |
MapData.getMapPacket(ItemStack mapStack,
IBlockReader worldIn,
PlayerEntity player) |
IPacket<?> |
MapData.MapInfo.getPacket(ItemStack stack) |
Modifier and Type | Interface and Description |
---|---|
interface |
ICustomPacket<T extends IPacket<?>> |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> |
PacketDistributor.functor |
private java.lang.Class<? extends IPacket> |
NetworkDirection.packetClass |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.PacketTarget.packetConsumer |
private static it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<java.lang.Class<? extends IPacket>,NetworkDirection> |
NetworkDirection.packetLookup |
Modifier and Type | Method and Description |
---|---|
<T extends IPacket<?>> |
NetworkDirection.buildPacket(org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer> packetData,
ResourceLocation channelName) |
Modifier and Type | Method and Description |
---|---|
static IPacket<?> |
NetworkHooks.getEntitySpawningPacket(Entity entity) |
Modifier and Type | Method and Description |
---|---|
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.clientToServer(java.util.function.Supplier<java.lang.Void> voidSupplier) |
private java.lang.Class<? extends IPacket> |
NetworkDirection.getPacketClass() |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.networkManagerList(java.util.function.Supplier<java.util.List<NetworkManager>> nmListSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.playerConsumer(java.util.function.Supplier<ServerPlayerEntity> entityPlayerMPSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.playerListAll(java.util.function.Supplier<java.lang.Void> voidSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.playerListDimConsumer(java.util.function.Supplier<DimensionType> dimensionTypeSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.playerListPointConsumer(java.util.function.Supplier<PacketDistributor.TargetPoint> targetPointSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.trackingChunk(java.util.function.Supplier<Chunk> chunkPosSupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.trackingEntity(java.util.function.Supplier<Entity> entitySupplier) |
private java.util.function.Consumer<IPacket<?>> |
PacketDistributor.trackingEntityAndSelf(java.util.function.Supplier<Entity> entitySupplier) |
Modifier and Type | Method and Description |
---|---|
void |
PacketDistributor.PacketTarget.send(IPacket<?> packet) |
Constructor and Description |
---|
NetworkDirection(java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> eventSupplier,
LogicalSide logicalSide,
java.lang.Class<? extends IPacket> clazz,
int i) |
PacketDistributor(java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> functor,
NetworkDirection direction) |
PacketTarget(java.util.function.Consumer<IPacket<?>> packetConsumer,
PacketDistributor<?> distributor) |
Modifier and Type | Method and Description |
---|---|
<MSG> IPacket<?> |
SimpleChannel.toVanillaPacket(MSG message,
NetworkDirection direction) |