net.minecraft.world.level

public enum GameType

bwn
net.minecraft.world.level.GameType
net.minecraft.class_1934
net.minecraft.unmapped.C_lghcpyvl
net.minecraft.world.GameMode
net.minecraft.src.C_1593_
net.minecraft.world.level.EnumGamemode

Enum constant summary

Enum Constant
a
SURVIVAL
field_9215
f_lnzspbqc
SURVIVAL
SURVIVAL
b
CREATIVE
field_9220
f_fnzwkpoo
CREATIVE
CREATIVE
c
ADVENTURE
field_9216
f_iuxkmaaj
ADVENTURE
ADVENTURE
d
SPECTATOR
field_9219
f_gelvrmoa
SPECTATOR
SPECTATOR

Field summary

Modifier and TypeField
public static final GameType
e
DEFAULT_MODE
field_28045
f_awdukclj
DEFAULT
f_151492_
private static final int
f
NOT_SET
field_30964
f_lewmbrwu
field_30964
f_46378_
private final int
g
id
field_9217
f_cifkkwzi
id
f_46383_
private final String
h
name
field_9221
f_jcxdddpi
name
f_46384_
private final Component
i
shortName
field_28046
f_zotouesg
simpleTranslatableName
f_151493_
private final Component
j
longName
field_28047
f_fovaffel
translatableName
f_151494_

Constructor summary

ModifierConstructor
private (int p_46389_, String p_46390_)

Method summary

Modifier and TypeMethod
public int
a()
getId()
method_8379()
m_utsulimh()
getId()
m_46392_()
getId()
public String
b()
getName()
method_8381()
m_rdspgwak()
getName()
m_46405_()
public Component
c()
getLongDisplayName()
method_8383()
m_wjcilliq()
getTranslatableName()
m_151499_()
public Component
d()
getShortDisplayName()
method_32763()
m_lkyfhjye()
getSimpleTranslatableName()
m_151500_()
public void
a(bkb arg0)
updatePlayerAbilities(Abilities arg0)
method_8382(class_1656 arg0)
m_vjmiypmi(C_tlquukty arg0)
setAbilities(PlayerAbilities abilities)
m_46398_(C_1138_ arg0)
public boolean
e()
isBlockPlacingRestricted()
method_8387()
m_orayhhdu()
isBlockBreakingRestricted()
m_46407_()
public boolean
f()
isCreative()
method_8386()
m_uyrdiqym()
isCreative()
m_46408_()
isCreative()
public boolean
g()
isSurvival()
method_8388()
m_hlwoepvs()
isSurvivalLike()
m_46409_()
public static GameType
a(int arg0)
byId(int arg0)
method_8384(int arg0)
m_zpfphdso(int arg0)
byId(int id)
m_46393_(int p_46394_)
getById(int arg0)
public static GameType
a(int arg0, bwn arg1)
byId(int arg0, GameType arg1)
method_8380(int arg0, class_1934 arg1)
m_bekoqtiz(int arg0, C_lghcpyvl arg1)
byId(int id, GameMode defaultMode)
m_46395_(int p_46396_, C_1593_ p_46397_)
public static GameType
a(String arg0)
byName(String arg0)
method_8385(String arg0)
m_nxzcfhje(String arg0)
byName(String name)
m_46400_(String p_46401_)
public static GameType
a(String arg0, bwn arg1)
byName(String arg0, GameType arg1)
method_8378(String arg0, class_1934 arg1)
m_zjoqvotw(String arg0, C_lghcpyvl arg1)
byName(String name, GameMode defaultMode)
m_46402_(String p_46403_, C_1593_ p_46404_)
public static int
a(bwn arg0)
getNullableId(GameType arg0)
method_32761(class_1934 arg0)
m_wechklig(C_lghcpyvl arg0)
getId(GameMode gameMode)
m_151495_(C_1593_ p_151496_)
public static GameType
b(int arg0)
byNullableId(int arg0)
method_32762(int arg0)
m_pmkxwjuj(int arg0)
getOrNull(int id)
m_151497_(int p_151498_)