Class ReplicateSpiritStatus

java.lang.Object
etithespirit.orimod.networking.spirit.ReplicateSpiritStatus

public final class ReplicateSpiritStatus extends Object
The core networking code used to dispatch and receive network events for player models.
Author:
Eti
  • Field Details

    • INSTANCE

      public static final net.minecraftforge.network.simple.SimpleChannel INSTANCE
  • Constructor Details

    • ReplicateSpiritStatus

      public ReplicateSpiritStatus()
  • Method Details

    • registerPackets

      public static void registerPackets(net.minecraftforge.api.distmarker.Dist side)
    • tellEveryonePlayerSpiritStatus

      @ServerUseOnly public static void tellEveryonePlayerSpiritStatus(net.minecraft.world.entity.player.Player player, boolean isSpirit)
      Relays a message to all players whether or not the given player is a spirit.
      Parameters:
      player - The player who changed.
      isSpirit - The new state of whether or not they are a spirit.
    • askToSetSpiritStatusAsync

      @ClientUseOnly public static void askToSetSpiritStatusAsync(boolean isSpirit)
      Politely asks the server if I can become a spirit (or no longer be one).
      Parameters:
      isSpirit - Whether or not I want to be a spirit.
    • askWhoIsASpiritAsync

      @ClientUseOnly public static void askWhoIsASpiritAsync()
      Politely asks the server which people are spirits right now.