Class PlayerPositionPacket<T extends PlayerPositionPacket<T>>
java.lang.Object
org.cyclops.cyclopscore.network.PacketBase<T>
org.cyclops.cyclopscore.network.PacketCodec<T>
org.cyclops.cyclopscore.network.packet.PlayerPositionPacket<T>
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
@Deprecated
public abstract class PlayerPositionPacket<T extends PlayerPositionPacket<T>>
extends org.cyclops.cyclopscore.network.PacketCodec<T>
Deprecated.
An abstract superclass for all packets that contain the position and uuid
of a player and execute a specific action on the client side that is visible by
all players in a specific range around the given player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.cyclopscore.network.PacketCodec.ICodecAction, org.cyclops.cyclopscore.network.PacketCodec.ICodecRunnable
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,
T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
Modifier and TypeFieldDescriptionprotected net.minecraft.world.phys.Vec3
Deprecated.protected String
Deprecated. -
Constructor Summary
ConstructorDescriptionPlayerPositionPacket
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type) Deprecated.Creates a packet with no contentPlayerPositionPacket
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player) Deprecated.PlayerPositionPacket
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player, int range) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionClient
(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) Deprecated.void
actionServer
(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) Deprecated.protected abstract PlayerPositionPacket
create
(net.minecraft.world.entity.player.Player player, int range) Deprecated.protected abstract ModBase
Deprecated.boolean
isAsync()
Deprecated.protected abstract void
performClientAction
(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) Deprecated.Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec
addCodedAction, decode, encode, getAction, getActionSuper, read, write
-
Field Details
-
Constructor Details
-
PlayerPositionPacket
public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type) Deprecated.Creates a packet with no content -
PlayerPositionPacket
public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player) Deprecated. -
PlayerPositionPacket
public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player, int range) Deprecated.
-
-
Method Details
-
isAsync
public boolean isAsync()Deprecated.- Specified by:
isAsync
in classorg.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
-
actionClient
public void actionClient(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) Deprecated.- Specified by:
actionClient
in classorg.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
-
actionServer
public void actionServer(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) Deprecated.- Specified by:
actionServer
in classorg.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
-
create
protected abstract PlayerPositionPacket create(net.minecraft.world.entity.player.Player player, int range) Deprecated. -
getModInstance
Deprecated. -
performClientAction
protected abstract void performClientAction(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) Deprecated.
-