Whether this mode covers both the client and the server, allowing content that must exist
on both sides (e.g. items, blocks, block entities, tags) to be registered.
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.
Die Zeichenfolge muss exakt mit einer ID übereinstimmen,
mit der eine Enum-Konstante in dieser Klasse deklariert wird.
(Zusätzliche Leerzeichen sind nicht zulässig.)
Parameter:
name - Name der zurückzugebenden Enumerationskonstante.
Gibt zurück:
Enumerationskonstante mit dem angegebenen Namen
Löst aus:
IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
Whether this mode covers the client side, allowing content that only needs to exist on
the client (e.g. sounds, particles) to be registered.
supportsServer
publicbooleansupportsServer()
Whether this mode covers the server side, allowing content that only needs to exist on
the server (e.g. recipes) to be registered.
requiresBothSides
publicbooleanrequiresBothSides()
Whether this mode covers both the client and the server, allowing content that must exist
on both sides (e.g. items, blocks, block entities, tags) to be registered.