Class SurvivalBlueprintHandlers

java.lang.Object
com.ldtteam.structurize.storage.SurvivalBlueprintHandlers

public class SurvivalBlueprintHandlers extends Object
Class to register a survival blueprint handler.
  • Constructor Details

    • SurvivalBlueprintHandlers

      public SurvivalBlueprintHandlers()
  • Method Details

    • getHandler

      public static ISurvivalBlueprintHandler getHandler(String id)
      Get a specific handler by id.
      Parameters:
      id - the id of the handler.
      Returns:
      the handler instance.
    • getHandlers

      public static List<ISurvivalBlueprintHandler> getHandlers()
      Getthe full list of handlers.
      Returns:
      a list.
    • registerHandler

      public static void registerHandler(ISurvivalBlueprintHandler handler)
      Register a new survival blueprint handler.
      Parameters:
      handler - the handler itself.
    • getMatchingHandlers

      public static List<ISurvivalBlueprintHandler> getMatchingHandlers(Blueprint blueprint, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, PlacementSettings settings)
      Get all handlers that can take over the placement operation.
      Returns: