Class ScoreFormatTypes
java.lang.Object
com.github.retrooper.packetevents.protocol.score.ScoreFormatTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScoreFormatTypestatic final ScoreFormatTypestatic final ScoreFormatType -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ScoreFormat>
ScoreFormatTypedefine(int id, String name, Class<T> formatClass, Function<PacketWrapper<?>, T> reader, BiConsumer<PacketWrapper<?>, T> writer) static @Nullable ScoreFormatTypegetById(ClientVersion version, int id) static @Nullable ScoreFormatTypegetByName(ResourceLocation name) static @Nullable ScoreFormatTypestatic ScoreFormatread(PacketWrapper<?> wrapper) static Collection<ScoreFormatType> values()Returns an immutable view of the score format types.static voidwrite(PacketWrapper<?> wrapper, ScoreFormat format)
-
Field Details
-
BLANK
-
STYLED
-
FIXED
-
-
Method Details
-
values
Returns an immutable view of the score format types.- Returns:
- Score Format Types
-
read
-
write
-
define
public static <T extends ScoreFormat> ScoreFormatType define(int id, String name, Class<T> formatClass, Function<PacketWrapper<?>, T> reader, BiConsumer<PacketWrapper<?>, T> writer) -
getById
-
getByName
-
getByName
-