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
FieldsModifier and TypeFieldDescriptionList<net.thewinnt.cutscenes.platform.PacketType<? extends net.thewinnt.cutscenes.platform.AbstractClientboundPacket>> net.minecraft.server.MinecraftServerList<net.thewinnt.cutscenes.platform.PacketType<? extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.MinecraftServernet.minecraft.world.entity.EntityType<net.thewinnt.cutscenes.entity.WaypointEntity> <T extends net.thewinnt.cutscenes.platform.AbstractClientboundPacket>
voidregisterClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader) static <T extends net.thewinnt.cutscenes.platform.AbstractClientboundPacket>
voidregisterClientboundPacket(net.thewinnt.cutscenes.platform.PacketType<T> type) voidregisterReloadListener(net.minecraft.server.packs.resources.PreparableReloadListener listener, net.minecraft.resources.ResourceLocation id) <T extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket>
voidregisterServerboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader) static <T extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket>
voidregisterServerboundPacket(net.thewinnt.cutscenes.platform.PacketType<T> type) voidsendPacketFromPlayer(net.thewinnt.cutscenes.platform.AbstractServerboundPacket packet) voidsendPacketToPlayer(net.thewinnt.cutscenes.platform.AbstractClientboundPacket 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
-
clientboundPackets
public List<net.thewinnt.cutscenes.platform.PacketType<? extends net.thewinnt.cutscenes.platform.AbstractClientboundPacket>> clientboundPackets -
serverboundPackets
public List<net.thewinnt.cutscenes.platform.PacketType<? extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket>> serverboundPackets -
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.AbstractClientboundPacket> void registerClientboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader) - Specified by:
registerClientboundPacketin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
sendPacketToPlayer
public void sendPacketToPlayer(net.thewinnt.cutscenes.platform.AbstractClientboundPacket packet, net.minecraft.server.level.ServerPlayer player) - Specified by:
sendPacketToPlayerin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
registerServerboundPacket
public <T extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket> void registerServerboundPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.thewinnt.cutscenes.platform.AbstractPacket.PacketReader<T> reader) - Specified by:
registerServerboundPacketin interfacenet.thewinnt.cutscenes.platform.PlatformAbstractions
-
sendPacketFromPlayer
public void sendPacketFromPlayer(net.thewinnt.cutscenes.platform.AbstractServerboundPacket packet) - Specified by:
sendPacketFromPlayerin 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) -
registerClientboundPacket
public static <T extends net.thewinnt.cutscenes.platform.AbstractClientboundPacket> void registerClientboundPacket(net.thewinnt.cutscenes.platform.PacketType<T> type) -
registerServerboundPacket
public static <T extends net.thewinnt.cutscenes.platform.AbstractServerboundPacket> void registerServerboundPacket(net.thewinnt.cutscenes.platform.PacketType<T> type)
-