Class StructureMock

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

public class StructureMock extends org.bukkit.generator.structure.Structure
  • Field Summary

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

    ANCIENT_CITY, BASTION_REMNANT, BURIED_TREASURE, DESERT_PYRAMID, END_CITY, FORTRESS, IGLOO, JUNGLE_PYRAMID, MANSION, MINESHAFT, MINESHAFT_MESA, MONUMENT, NETHER_FOSSIL, OCEAN_RUIN_COLD, OCEAN_RUIN_WARM, PILLAGER_OUTPOST, RUINED_PORTAL, RUINED_PORTAL_DESERT, RUINED_PORTAL_JUNGLE, RUINED_PORTAL_MOUNTAIN, RUINED_PORTAL_NETHER, RUINED_PORTAL_OCEAN, RUINED_PORTAL_SWAMP, SHIPWRECK, SHIPWRECK_BEACHED, STRONGHOLD, SWAMP_HUT, TRAIL_RUINS, TRIAL_CHAMBERS, VILLAGE_DESERT, VILLAGE_PLAINS, VILLAGE_SAVANNA, VILLAGE_SNOWY, VILLAGE_TAIGA
  • Constructor Summary

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

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

    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

    • StructureMock

      public StructureMock(org.bukkit.NamespacedKey key, org.bukkit.generator.structure.StructureType type)
      Parameters:
      key - The namespaced key representing this structure
      type - The type of structure
    • StructureMock

      @Deprecated(forRemoval=true) public StructureMock(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

    • from

      @Internal public static StructureMock from(com.google.gson.JsonObject data)
    • getStructureType

      @NotNull public @NotNull org.bukkit.generator.structure.StructureType getStructureType()
      Specified by:
      getStructureType in class org.bukkit.generator.structure.Structure
    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
      Specified by:
      getKey in class org.bukkit.generator.structure.Structure