java.lang.Object
com.thevoxelbox.voxelsniper.sniper.toolkit.Toolkit

public class Toolkit extends Object
  • Field Details

  • Constructor Details

    • Toolkit

      public Toolkit(String toolkitName)
  • Method Details

    • reset

      public void reset()
    • addToolAction

      public void addToolAction(ItemType toolMaterial, ToolAction action)
    • hasToolAction

      public boolean hasToolAction(ItemType toolMaterial)
    • getToolAction

      @Nullable public @Nullable ToolAction getToolAction(ItemType toolMaterial)
    • removeToolAction

      public void removeToolAction(ItemType toolMaterial)
    • useBrush

      public Brush useBrush(BrushProperties properties)
    • usePerformer

      public Performer usePerformer(PerformerProperties properties)
      Use a performer. Initializes and returns it.
      Parameters:
      properties - the properties
      Returns:
      the performer
      Since:
      3.0.0
    • getCurrentBrush

      @Nullable public @Nullable Brush getCurrentBrush()
    • getBrush

      @Nullable public @Nullable Brush getBrush(BrushProperties properties)
    • getToolkitName

      public String getToolkitName()
    • isDefault

      public boolean isDefault()
      Return whether the toolkit is the default one or not.
      Returns:
      whether the toolkit is the default one or not
    • getCurrentBrushProperties

      public BrushProperties getCurrentBrushProperties()
    • getPreviousBrushProperties

      public BrushProperties getPreviousBrushProperties()
    • getToolActions

      public Map<ItemType,ToolAction> getToolActions()
    • getProperties

      public ToolkitProperties getProperties()