Class ServerPreviewDistributor

java.lang.Object
com.ldtteam.structurize.storage.rendering.ServerPreviewDistributor

public class ServerPreviewDistributor extends Object
Class handling blueprint syncing between players.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    distribute(BlueprintPreviewData renderingCache, net.minecraft.server.level.ServerPlayer sourcePlayer)
    Distribute this rendering cache to all that are wanting to listen.
    static void
    onLogout(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event)
     
    static void
    register(net.minecraft.server.level.ServerPlayer player, boolean displayShared)
    Register a player with their settings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerPreviewDistributor

      public ServerPreviewDistributor()
  • Method Details

    • onLogout

      public static void onLogout(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event)
    • distribute

      public static void distribute(BlueprintPreviewData renderingCache, net.minecraft.server.level.ServerPlayer sourcePlayer)
      Distribute this rendering cache to all that are wanting to listen.
      Parameters:
      renderingCache - the cache to distribute.
    • register

      public static void register(net.minecraft.server.level.ServerPlayer player, boolean displayShared)
      Register a player with their settings.
      Parameters:
      player - the player.
      displayShared - if displayed is shared or not.