Package org.spongepowered.api.data.type
Interface ArtType
- All Superinterfaces:
DataPackSerializable,DefaultedRegistryValue<ArtType>
@CatalogedBy(ArtTypes.class)
public interface ArtType
extends DefaultedRegistryValue<ArtType>, DataPackSerializable
Represents a piece of art to be displayed by
Paintings.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtType.Builderbuilder()intheight()Gets the height in blocks this art piece spans.intwidth()Gets the width in blocks this art piece spans.Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPackMethods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
builder
-
height
int height()Gets the height in blocks this art piece spans.- Returns:
- The height in blocks
-
width
int width()Gets the width in blocks this art piece spans.- Returns:
- The width in blocks
-