mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-22 18:26:10 +01:00
Change case on GameMode
This commit is contained in:
parent
da103c6d3c
commit
103b53a97a
@ -4,7 +4,7 @@ from minecraft.networking.packets import (
|
||||
|
||||
from minecraft.networking.types import (
|
||||
Integer, FixedPointInteger, UnsignedByte, Byte, Boolean, UUID, Short,
|
||||
VarInt, Double, Float, String, Enum, Difficulty, Dimension, Gamemode
|
||||
VarInt, Double, Float, String, Enum, Difficulty, Dimension, GameMode
|
||||
)
|
||||
|
||||
from .combat_event_packet import CombatEventPacket
|
||||
@ -81,7 +81,7 @@ class JoinGamePacket(Packet):
|
||||
Difficulty = Difficulty
|
||||
|
||||
# JoinGamePacket.Gamemode is an alias for Gamemode
|
||||
Gamemode = Gamemode
|
||||
GameMode = GameMode
|
||||
|
||||
# JoinGamePacket.Dimension is an alias for Dimension
|
||||
Dimension = Dimension
|
||||
@ -240,7 +240,7 @@ class RespawnPacket(Packet):
|
||||
Dimension = Dimension
|
||||
|
||||
# RespawnPacket.Gamemode is an alias for Gamemode.
|
||||
Gamemode = Gamemode
|
||||
GameMode = GameMode
|
||||
|
||||
|
||||
class PluginMessagePacket(AbstractPluginMessagePacket):
|
||||
|
@ -12,7 +12,7 @@ from .utility import Vector
|
||||
|
||||
__all__ = (
|
||||
'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace',
|
||||
'Difficulty', 'Dimension', 'Gamemode'
|
||||
'Difficulty', 'Dimension', 'GameMode'
|
||||
)
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ class Dimension(Enum):
|
||||
|
||||
|
||||
# Designation of a player's gamemode.
|
||||
class Gamemode(Enum):
|
||||
class GameMode(Enum):
|
||||
SURVIVAL = 0
|
||||
CREATIVE = 1
|
||||
ADVENTURE = 2
|
||||
|
Loading…
Reference in New Issue
Block a user