Class AbstractStructureHandler

java.lang.Object
com.ldtteam.structurize.placement.structure.AbstractStructureHandler
All Implemented Interfaces:
IPlacementContext, IStructureHandler
Direct Known Subclasses:
CreativeStructureHandler

public abstract class AbstractStructureHandler extends Object implements IStructureHandler
Abstract implementation of the handler holding information that is common for all handlers.
  • Constructor Details

    • AbstractStructureHandler

      public AbstractStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos worldPos, Future<Blueprint> blueprintFuture, RotationMirror rotMir)
      Abstract constructor of structure handler.
      Parameters:
      world - the world it gets.
      worldPos - the position the anchor of the structure got placed.
      blueprintFuture - the name of the structure.
      rotMir - the placement settings.
    • AbstractStructureHandler

      public AbstractStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Blueprint blueprint, RotationMirror rotMir)
      Load the handler with the blueprint already.
      Parameters:
      world - the world.
      pos - the position.
      blueprint - the blueprint.
      rotMir - the placement settings.
  • Method Details