public class GameModeFavoriteEntry extends FavoriteEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
GameModeFavoriteEntry.GameModeMenuEntry |
static class |
GameModeFavoriteEntry.Type |
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.ResourceLocation |
ID |
static java.lang.String |
KEY |
static java.lang.String |
TRANSLATION_KEY |
TYPE_KEY| Constructor and Description |
|---|
GameModeFavoriteEntry(net.minecraft.world.GameType gameMode) |
| Modifier and Type | Method and Description |
|---|---|
FavoriteEntry |
copy() |
boolean |
doAction(int button) |
@NotNull java.util.Optional<java.util.function.Supplier<java.util.Collection<FavoriteMenuEntry>>> |
getMenuEntries() |
net.minecraft.util.ResourceLocation |
getType() |
EntryStack |
getWidget(boolean showcase) |
int |
hashIgnoreAmount() |
boolean |
isInvalid() |
boolean |
isSame(FavoriteEntry other) |
delegate, equals, fromEntryStack, fromJson, getUnwrapped, getUuid, hashCode, isEntryInvalid, toJsonpublic static final net.minecraft.util.ResourceLocation ID
public static final java.lang.String TRANSLATION_KEY
public static final java.lang.String KEY
public GameModeFavoriteEntry(net.minecraft.world.GameType gameMode)
public boolean isInvalid()
isInvalid in class FavoriteEntrypublic EntryStack getWidget(boolean showcase)
getWidget in class FavoriteEntrypublic boolean doAction(int button)
doAction in class FavoriteEntry@NotNull public @NotNull java.util.Optional<java.util.function.Supplier<java.util.Collection<FavoriteMenuEntry>>> getMenuEntries()
getMenuEntries in class FavoriteEntrypublic int hashIgnoreAmount()
hashIgnoreAmount in class FavoriteEntrypublic FavoriteEntry copy()
copy in class FavoriteEntrypublic net.minecraft.util.ResourceLocation getType()
getType in class FavoriteEntrypublic boolean isSame(FavoriteEntry other)
isSame in class FavoriteEntry