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 Link icon

    Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec Link icon

    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 Link icon

    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 Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.phys.Vec3
    Deprecated.
     
    protected String
    Deprecated.
     

    Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec Link icon

    fieldCache, READ_STRING_MAX_LENGTH
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type)
    Deprecated.
    Creates a packet with no content
    PlayerPositionPacket(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 Link icon

    Modifier and Type
    Method
    Description
    void
    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
    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 Link icon

    addCodedAction, decode, encode, getAction, getActionSuper, read, write

    Methods inherited from class org.cyclops.cyclopscore.network.PacketBase Link icon

    getCodec, type, write

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload Link icon

    toVanillaClientbound, toVanillaServerbound
  • Field Details Link icon

    • uuid Link icon

      protected String uuid
      Deprecated.
    • position Link icon

      protected net.minecraft.world.phys.Vec3 position
      Deprecated.
  • Constructor Details Link icon

    • PlayerPositionPacket Link icon

      public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type)
      Deprecated.
      Creates a packet with no content
    • PlayerPositionPacket Link icon

      public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player)
      Deprecated.
    • PlayerPositionPacket Link icon

      public PlayerPositionPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.world.entity.player.Player player, int range)
      Deprecated.
  • Method Details Link icon

    • isAsync Link icon

      public boolean isAsync()
      Deprecated.
      Specified by:
      isAsync in class org.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
    • actionClient Link icon

      public void actionClient(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player)
      Deprecated.
      Specified by:
      actionClient in class org.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
    • actionServer Link icon

      public void actionServer(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player)
      Deprecated.
      Specified by:
      actionServer in class org.cyclops.cyclopscore.network.PacketBase<T extends PlayerPositionPacket<T>>
    • create Link icon

      protected abstract PlayerPositionPacket create(net.minecraft.world.entity.player.Player player, int range)
      Deprecated.
    • getModInstance Link icon

      protected abstract ModBase getModInstance()
      Deprecated.
    • performClientAction Link icon

      protected abstract void performClientAction(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player)
      Deprecated.