Package org.mockbukkit.mockbukkit.art
Class ArtMock
- All Implemented Interfaces:
Comparable<Art>,net.kyori.adventure.key.Keyed,Art,Keyed,OldEnum<Art>
-
Field Summary
Fields inherited from interface org.bukkit.Art
ALBAN, AZTEC, AZTEC2, BACKYARD, BAROQUE, BOMB, BOUQUET, BURNING_SKULL, BUST, CAVEBIRD, CHANGING, COTAN, COURBET, CREEBET, DONKEY_KONG, EARTH, ENDBOSS, FERN, FIGHTERS, FINDING, FIRE, GRAHAM, HUMBLE, KEBAB, LOWMIST, MATCH, MEDITATIVE, ORB, OWLEMONS, PASSAGE, PIGSCENE, PLANT, POINTER, POND, POOL, PRAIRIE_RIDE, SEA, SKELETON, SKULL_AND_ROSES, STAGE, SUNFLOWERS, SUNSET, TIDES, UNPACKED, VOID, WANDERER, WASTELAND, WATER, WIND, WITHER -
Constructor Summary
ConstructorsConstructorDescriptionArtMock(String name, int ordinal, NamespacedKey key, int blockHeight, int blockWidth, int id, net.kyori.adventure.key.Key assetId, @Nullable net.kyori.adventure.text.Component author, @Nullable net.kyori.adventure.text.Component title) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.key.KeyassetId()@Nullable net.kyori.adventure.text.Componentauthor()static ArtMockfrom(com.google.gson.JsonObject jsonObject) intintintgetId()@NotNull net.kyori.adventure.key.Keykey()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable net.kyori.adventure.text.Componenttitle()Methods inherited from class org.mockbukkit.mockbukkit.util.OldKeyedEnumMock
getKeyMethods inherited from class org.mockbukkit.mockbukkit.util.OldEnumMock
compareTo, name, ordinal
-
Constructor Details
-
ArtMock
public ArtMock(String name, int ordinal, NamespacedKey key, int blockHeight, int blockWidth, int id, net.kyori.adventure.key.Key assetId, @Nullable @Nullable net.kyori.adventure.text.Component author, @Nullable @Nullable net.kyori.adventure.text.Component title)
-
-
Method Details
-
from
-
getBlockWidth
public int getBlockWidth()- Specified by:
getBlockWidthin interfaceArt
-
getBlockHeight
public int getBlockHeight()- Specified by:
getBlockHeightin interfaceArt
-
getId
public int getId() -
title
@Nullable public @Nullable net.kyori.adventure.text.Component title() -
author
@Nullable public @Nullable net.kyori.adventure.text.Component author() -
assetId
@NotNull public @NotNull net.kyori.adventure.key.Key assetId() -
key
@Deprecated(since="1.21", forRemoval=true) @NotNull public @NotNull net.kyori.adventure.key.Key key()Deprecated, for removal: This API element is subject to removal in a future version.
-