mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2025-02-16 20:01:38 +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 (
|
from minecraft.networking.types import (
|
||||||
Integer, FixedPointInteger, UnsignedByte, Byte, Boolean, UUID, Short,
|
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
|
from .combat_event_packet import CombatEventPacket
|
||||||
@ -81,7 +81,7 @@ class JoinGamePacket(Packet):
|
|||||||
Difficulty = Difficulty
|
Difficulty = Difficulty
|
||||||
|
|
||||||
# JoinGamePacket.Gamemode is an alias for Gamemode
|
# JoinGamePacket.Gamemode is an alias for Gamemode
|
||||||
Gamemode = Gamemode
|
GameMode = GameMode
|
||||||
|
|
||||||
# JoinGamePacket.Dimension is an alias for Dimension
|
# JoinGamePacket.Dimension is an alias for Dimension
|
||||||
Dimension = Dimension
|
Dimension = Dimension
|
||||||
@ -240,7 +240,7 @@ class RespawnPacket(Packet):
|
|||||||
Dimension = Dimension
|
Dimension = Dimension
|
||||||
|
|
||||||
# RespawnPacket.Gamemode is an alias for Gamemode.
|
# RespawnPacket.Gamemode is an alias for Gamemode.
|
||||||
Gamemode = Gamemode
|
GameMode = GameMode
|
||||||
|
|
||||||
|
|
||||||
class PluginMessagePacket(AbstractPluginMessagePacket):
|
class PluginMessagePacket(AbstractPluginMessagePacket):
|
||||||
|
@ -12,7 +12,7 @@ from .utility import Vector
|
|||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace',
|
'Enum', 'BitFieldEnum', 'AbsoluteHand', 'RelativeHand', 'BlockFace',
|
||||||
'Difficulty', 'Dimension', 'Gamemode'
|
'Difficulty', 'Dimension', 'GameMode'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ class Dimension(Enum):
|
|||||||
|
|
||||||
|
|
||||||
# Designation of a player's gamemode.
|
# Designation of a player's gamemode.
|
||||||
class Gamemode(Enum):
|
class GameMode(Enum):
|
||||||
SURVIVAL = 0
|
SURVIVAL = 0
|
||||||
CREATIVE = 1
|
CREATIVE = 1
|
||||||
ADVENTURE = 2
|
ADVENTURE = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user