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
ConstructorsConstructorDescriptionStructureTypeMock(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 TypeMethodDescriptionstatic StructureTypeMockfrom(com.google.gson.JsonObject data) @NotNull org.bukkit.NamespacedKeygetKey()Methods 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
-
StructureTypeMock
public StructureTypeMock(org.bukkit.NamespacedKey key) - Parameters:
key- The namespaced key representing this structure type
-
StructureTypeMock
Deprecated, for removal: This API element is subject to removal in a future version.UseStructureTypeMock(NamespacedKey)instead- Parameters:
data- Json data
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey() -
from
-
StructureTypeMock(NamespacedKey)instead