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
ConstructorsConstructorDescriptionStructureMock(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 TypeMethodDescriptionstatic StructureMockfrom(com.google.gson.JsonObject data) @NotNull org.bukkit.NamespacedKeygetKey()@NotNull org.bukkit.generator.structure.StructureTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 structuretype- The type of structure
-
StructureMock
Deprecated, for removal: This API element is subject to removal in a future version.Will useStructureMock(NamespacedKey, StructureType)instead.- Parameters:
data- Json data
-
-
Method Details
-
from
-
getStructureType
@NotNull public @NotNull org.bukkit.generator.structure.StructureType getStructureType()- Specified by:
getStructureTypein classorg.bukkit.generator.structure.Structure
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed- Specified by:
getKeyin classorg.bukkit.generator.structure.Structure
-
StructureMock(NamespacedKey, StructureType)instead.