Package net.thewinnt.cutscenes.fabric
Class FabricPlatform
java.lang.Object
net.thewinnt.cutscenes.fabric.FabricPlatform
- All Implemented Interfaces:
net.thewinnt.cutscenes.platform.PlatformAbstractions
- Direct Known Subclasses:
FabricClientPlatform
public class FabricPlatform
extends Object
implements net.thewinnt.cutscenes.platform.PlatformAbstractions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatnet.minecraft.server.MinecraftServernet.minecraft.world.entity.EntityType<net.thewinnt.cutscenes.entity.WaypointEntity> <T extends net.thewinnt.cutscenes.platform.AbstractPacket>
voidregisterClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader, Consumer<T> handler) static <T extends net.thewinnt.cutscenes.platform.AbstractPacket>
voidregisterPacket(net.thewinnt.cutscenes.platform.PacketType<T> type) voidregisterReloadListener(net.minecraft.server.packs.resources.PreparableReloadListener listener, net.minecraft.resources.ResourceLocation id) voidsendPacketToPlayer(net.thewinnt.cutscenes.platform.AbstractPacket packet, net.minecraft.server.level.ServerPlayer player) voidsetServer(net.minecraft.server.MinecraftServer server) voidsubmitCameraAngleModifier(Consumer<net.thewinnt.cutscenes.platform.CameraAngleSetter> modifier) voidsubmitOnClientTick(Runnable runnable) voidsubmitOnLogout(Runnable runnable) voidsubmitOnRegisterCommand(Consumer<com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack>> command) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thewinnt.cutscenes.platform.PlatformAbstractions
sendPacketToPlayers
-
Field Details
-
packets
-
angleSetters
-
onLogout
-
server
public net.minecraft.server.MinecraftServer server
-
-
Constructor Details
-
FabricPlatform
public FabricPlatform()
-
-
Method Details
-
registerReloadListener
public void registerReloadListener(net.minecraft.server.packs.resources.PreparableReloadListener listener, net.minecraft.resources.ResourceLocation id) - Specified by:
registerReloadListenerin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
registerClientboundPacket
public <T extends net.thewinnt.cutscenes.platform.AbstractPacket> void registerClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader, Consumer<T> handler) - Specified by:
registerClientboundPacketin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
sendPacketToPlayer
public void sendPacketToPlayer(net.thewinnt.cutscenes.platform.AbstractPacket packet, net.minecraft.server.level.ServerPlayer player) - Specified by:
sendPacketToPlayerin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
getPartialTick
public float getPartialTick()- Specified by:
getPartialTickin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
getServer
public net.minecraft.server.MinecraftServer getServer()- Specified by:
getServerin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
submitCameraAngleModifier
public void submitCameraAngleModifier(Consumer<net.thewinnt.cutscenes.platform.CameraAngleSetter> modifier) - Specified by:
submitCameraAngleModifierin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
submitOnLogout
- Specified by:
submitOnLogoutin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
submitOnClientTick
- Specified by:
submitOnClientTickin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
submitOnRegisterCommand
public void submitOnRegisterCommand(Consumer<com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack>> command) - Specified by:
submitOnRegisterCommandin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
getWaypointEntityType
public net.minecraft.world.entity.EntityType<net.thewinnt.cutscenes.entity.WaypointEntity> getWaypointEntityType()- Specified by:
getWaypointEntityTypein interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
setServer
public void setServer(net.minecraft.server.MinecraftServer server) -
registerPacket
public static <T extends net.thewinnt.cutscenes.platform.AbstractPacket> void registerPacket(net.thewinnt.cutscenes.platform.PacketType<T> type)
-