Class AddOp

java.lang.Object
com.hypixel.hytale.builtin.worldgen.modifier.op.AddOp
All Implemented Interfaces:
Op

public class AddOp extends Object implements Op
Loads and adds content to the event entries.
  • Field Details

  • Constructor Details

    • AddOp

      public AddOp()
  • Method Details

    • type

      public Content.Type type()
      Specified by:
      type in interface Op
    • apply

      public <T> void apply(@Nonnull ModifyEvent<T> event) throws Error
      Description copied from interface: Op
      Generic interface for applying operations to all ModifyEvent types.
      Specified by:
      apply in interface Op
      Type Parameters:
      T - The type of content being modified.
      Parameters:
      event - The ModifyEvent to apply the operation to.
      Throws:
      Error