net.minecraft.world.level

public enum GameType

implements StringRepresentable

dgg
net.minecraft.world.level.GameType
net.minecraft.class_1934
net.minecraft.unmapped.C_lghcpyvl
net.minecraft.world.GameMode
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
SURVIVAL
b
CREATIVE
field_9220
f_fnzwkpoo
CREATIVE
CREATIVE
CREATIVE
c
ADVENTURE
field_9216
f_iuxkmaaj
ADVENTURE
ADVENTURE
ADVENTURE
d
SPECTATOR
field_9219
f_gelvrmoa
SPECTATOR
SPECTATOR
SPECTATOR

Field summary

Modifier and TypeField
public static final GameType
e
DEFAULT_MODE
field_28045
f_awdukclj
DEFAULT
DEFAULT
f_151492_
public static final StringRepresentable$EnumCodec<GameType>
f
CODEC
field_41676
f_nzmwalvo
CODEC
CODEC
f_262729_
private static final IntFunction<GameType>
g
BY_ID
field_41677
f_fofiipec
BY_ID
BY_ID
f_262728_
private static final int
h
NOT_SET
field_30964
f_lewmbrwu
UNKNOWN
NULL_GAME_MODE_ID
f_46378_
private final int
i
id
field_9217
f_cifkkwzi
id
id
f_46383_
private final String
j
name
field_9221
f_jcxdddpi
name
name
f_46384_
private final Component
k
shortName
field_28046
f_zotouesg
simpleTranslatableName
simpleTranslatableName
f_151493_
private final Component
l
longName
field_28047
f_fovaffel
translatableName
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()
getId()
m_46392_()
public String
b()
getName()
method_8381()
m_rdspgwak()
getName()
getName()
m_46405_()
public String
c()
getSerializedName()
method_15434()
m_dxbrenur()
asString()
asString()
m_7912_()
public Component
d()
getLongDisplayName()
method_8383()
m_wjcilliq()
getTranslatableName()
getTranslatableName()
m_151499_()
public Component
e()
getShortDisplayName()
method_32763()
m_lkyfhjye()
getSimpleTranslatableName()
getSimpleTranslatableName()
m_151500_()
public void
a(cou arg0)
updatePlayerAbilities(Abilities arg0)
method_8382(class_1656 arg0)
m_vjmiypmi(C_tlquukty arg0)
setAbilities(PlayerAbilities abilities)
setAbilities(PlayerAbilities abilities)
m_46398_(C_1138_ arg0)
public boolean
f()
isBlockPlacingRestricted()
method_8387()
m_orayhhdu()
isBlockBreakingRestricted()
isBlockBreakingRestricted()
m_46407_()
public boolean
g()
isCreative()
method_8386()
m_uyrdiqym()
isCreative()
isCreative()
m_46408_()
public boolean
h()
isSurvival()
method_8388()
m_hlwoepvs()
isSurvivalLike()
isSurvivalLike()
m_46409_()
public static GameType
a(int arg0)
byId(int arg0)
method_8384(int arg0)
m_plpzjnmj(int arg0)
byId(int id)
byId(int id)
m_46393_(int p_46394_)
public static GameType
a(String arg0)
byName(String arg0)
method_8385(String arg0)
m_nxzcfhje(String arg0)
byName(String name)
byName(String name)
m_46400_(String p_46401_)
public static GameType
a(String arg0, dgg 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)
byName(String name, GameMode defaultMode)
m_46402_(String p_46403_, C_1593_ p_46404_)
public static int
a(dgg arg0)
getNullableId(GameType arg0)
method_32761(class_1934 arg0)
m_wechklig(C_lghcpyvl arg0)
getId(GameMode gameMode)
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)
getOrNull(int id)
m_151497_(int p_151498_)
public static boolean
c(int arg0)
isValidId(int arg0)
method_64760(int arg0)
m_xhujbjzr(int arg0)
isValid(int id)
m_352105_(int p_363661_)