Package com.ldtteam.structurize.storage
Class SurvivalBlueprintHandlers
java.lang.Object
com.ldtteam.structurize.storage.SurvivalBlueprintHandlers
Class to register a survival blueprint handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ISurvivalBlueprintHandlergetHandler(String id) Get a specific handler by id.static List<ISurvivalBlueprintHandler>Getthe full list of handlers.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.static voidregisterHandler(ISurvivalBlueprintHandler handler) Register a new survival blueprint handler.
-
Constructor Details
-
SurvivalBlueprintHandlers
public SurvivalBlueprintHandlers()
-
-
Method Details
-
getHandler
Get a specific handler by id.- Parameters:
id- the id of the handler.- Returns:
- the handler instance.
-
getHandlers
Getthe full list of handlers.- Returns:
- a list.
-
registerHandler
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:
-