Class StickerImpl
java.lang.Object
com.mewna.catnip.entity.impl.sticker.StickerImpl
- All Implemented Interfaces:
Entity
,HasDescription
,HasName
,Snowflake
,Timestamped
,RequiresCatnip
,Sticker
- Since:
- 10/15/20.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionStickerImpl
(Catnip catnip, long idAsLong, long packIdAsLong, String name, String description, List<String> tags, String asset, String previewAsset, StickerFormatType formatType) -
Method Summary
Modifier and TypeMethodDescriptionasset()
builder()
catnip()
Returns the catnip instance associated with this entity.void
description
(String description) formatType
(StickerFormatType formatType) long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) name()
long
packIdAsLong
(long packIdAsLong) previewAsset
(String previewAsset) tags()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
StickerImpl
public StickerImpl() -
StickerImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
packIdAsLong
public long packIdAsLong()- Specified by:
packIdAsLong
in interfaceSticker
-
name
-
description
- Specified by:
description
in interfaceHasDescription
-
tags
-
asset
-
previewAsset
- Specified by:
previewAsset
in interfaceSticker
-
formatType
- Specified by:
formatType
in interfaceSticker
-
idAsLong
- Returns:
this
.
-
packIdAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
description
- Returns:
this
.
-
tags
- Returns:
this
.
-
asset
- Returns:
this
.
-
previewAsset
- Returns:
this
.
-
formatType
- Returns:
this
.
-