Package net.thewinnt.cutscenes.rotation
Interface RotationSerializer<T extends RotationHandler>
- All Known Implementing Classes:
EaseBackSerializer,SimpleRotationHandlerSerializer
public interface RotationSerializer<T extends RotationHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RotationSerializer<AddToCutsceneRotation> static final RotationSerializer<CutsceneRotation> static final RotationSerializer<EaseBackRotation> static final RotationSerializer<PlayerRotation> static final Map<String, RotationHandler> -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.google.gson.JsonObject json) fromNetwork(net.minecraft.network.FriendlyByteBuf buf) static voidinit()static <T extends RotationSerializer<?>>
Tregister(T serializer, net.minecraft.resources.ResourceLocation id) static <T extends RotationHandler>
RotationSerializer<T> registerSimple(T singleton, net.minecraft.resources.ResourceLocation id) void
-
Field Details
-
SIMPLE_HANDLERS
-
CUTSCENE
-
PLAYER
-
ADD
-
EASE_BACK
-
-
Method Details
-
toNetwork
-
fromNetwork
-
fromJson
-
registerSimple
static <T extends RotationHandler> RotationSerializer<T> registerSimple(T singleton, net.minecraft.resources.ResourceLocation id) -
register
static <T extends RotationSerializer<?>> T register(T serializer, net.minecraft.resources.ResourceLocation id) -
init
static void init()
-