Class ReplicateSpiritStatus
java.lang.Object
etithespirit.orimod.networking.spirit.ReplicateSpiritStatus
The core networking code used to dispatch and receive network events for player models.
- Author:
- Eti
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.network.simple.SimpleChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
askToSetSpiritStatusAsync
(boolean isSpirit) Politely asks the server if I can become a spirit (or no longer be one).static void
Politely asks the server which people are spirits right now.static void
registerPackets
(net.minecraftforge.api.distmarker.Dist side) 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.
-
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
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
Politely asks the server which people are spirits right now.
-