📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • getEntityId(): int
  • isHardcoreMode(): boolean
  • getGameType(): int
  • getDimension(): int
  • getDifficulty(): int
  • getMaxPlayers(): int
  • getWorldType(): int
  • isReducedDebugInfo(): boolean
  1. Objects
  2. Minecraft
  3. Packets
  4. ServerPacket

S01PacketJoinGame

getEntityId(): int

Returns the entity ID assigned to the player in the game. This is an integer value uniquely identifying the player's entity.

isHardcoreMode(): boolean

Determines whether the game is in hardcore mode. Returns true if the game is in hardcore mode, false otherwise.

getGameType(): int

Retrieves the game type ID. This is an integer value representing the game mode (e.g., Survival, Creative).

ID
name

-1

not set.

0

survival

1

creative

2

adventure

3

spectator

getDimension(): int

Returns the dimension ID the player is in. This is an integer value representing different dimensions like the Overworld, the Nether, or the End.

getDifficulty(): int

Provides the difficulty setting of the game. This is an integer value representing the difficulty level (e.g., Peaceful, Easy).

ID
name

0

peaceful

1

easy

2

normal

3

hard

getMaxPlayers(): int

Returns the maximum number of players allowed in the game. This is an integer value indicating the player capacity of the server.

getWorldType(): int

Retrieves the world type ID. This is an integer value representing the type of world

ID
name

0

default

1

flat

2

large biomes

3

amplified

4

customized

5

debug world

8

default 1 1

isReducedDebugInfo(): boolean

Determines whether reduced debug information is enabled. Returns true if reduced debug info is on, false otherwise.

Last updated 1 year ago