Class StructureTypeMock

java.lang.Object
org.bukkit.generator.structure.StructureType
be.seeseemelk.mockbukkit.generator.structure.StructureTypeMock
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class StructureTypeMock extends org.bukkit.generator.structure.StructureType
  • Field Summary

    Fields inherited from class org.bukkit.generator.structure.StructureType

    BURIED_TREASURE, DESERT_PYRAMID, END_CITY, FORTRESS, IGLOO, JIGSAW, JUNGLE_TEMPLE, MINESHAFT, NETHER_FOSSIL, OCEAN_MONUMENT, OCEAN_RUIN, RUINED_PORTAL, SHIPWRECK, STRONGHOLD, SWAMP_HUT, WOODLAND_MANSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    StructureTypeMock(com.google.gson.JsonObject data)
    Deprecated, for removal: This API element is subject to removal in a future version.
    StructureTypeMock(org.bukkit.NamespacedKey key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    from(com.google.gson.JsonObject data)
     
    @NotNull org.bukkit.NamespacedKey
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Constructor Details

    • StructureTypeMock

      public StructureTypeMock(org.bukkit.NamespacedKey key)
      Parameters:
      key - The namespaced key representing this structure type
    • StructureTypeMock

      @Deprecated(forRemoval=true) public StructureTypeMock(com.google.gson.JsonObject data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      data - Json data
  • Method Details

    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
    • from

      @Internal public static StructureTypeMock from(com.google.gson.JsonObject data)