Class ServerPreviewDistributor
java.lang.Object
com.ldtteam.structurize.storage.rendering.ServerPreviewDistributor
Class handling blueprint syncing between players.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddistribute(BlueprintPreviewData renderingCache, net.minecraft.server.level.ServerPlayer sourcePlayer) Distribute this rendering cache to all that are wanting to listen.static voidonLogout(net.minecraftforge.event.entity.player.PlayerEvent.PlayerLoggedOutEvent event) static voidregister(net.minecraft.server.level.ServerPlayer player, boolean displayShared) Register a player with their settings.
-
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.
-