Class LogKingdomItemPurchase
java.lang.Object
org.kingdoms.constants.group.model.logs.AuditLog
org.kingdoms.constants.group.model.logs.misc.LogPlayerOperator
org.kingdoms.constants.group.model.logs.purchases.LogResourcePoints
org.kingdoms.constants.group.model.logs.purchases.kingdomitem.LogKingdomItemPurchase
- All Implemented Interfaces:
org.kingdoms.abstraction.PlayerOperator,org.kingdoms.data.Deserializable,org.kingdoms.data.Serializable,org.kingdoms.locale.provider.CascadingMessageContextProvider,org.kingdoms.locale.provider.MessageContextProvider
- Direct Known Subclasses:
LogPurchaseStructure,LogPurchaseTurret
-
Constructor Summary
ConstructorsConstructorDescriptionLogKingdomItemPurchase(double resourcePoints, UUID player, KingdomBuildingStyle<?, ?, ?> style, int amount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdits(MessagePlaceholderProvider builder) voiddeserialize(DeserializationContext<org.kingdoms.data.database.dataprovider.SectionableDataGetter> context) intKingdomBuildingStyle<?, ?, ?> getStyle()protected abstract KingdomBuildingStyle<?, ?, ?> getStyleFromString(String styleName) voidserialize(SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context) Methods inherited from class org.kingdoms.constants.group.model.logs.purchases.LogResourcePoints
getResourcePointsMethods inherited from class org.kingdoms.constants.group.model.logs.misc.LogPlayerOperator
getPlayer, getPlayerIdMethods inherited from class org.kingdoms.constants.group.model.logs.AuditLog
addMessageContextEdits, getProvider, getTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.locale.provider.CascadingMessageContextProvider
getMessageContext
-
Constructor Details
-
LogKingdomItemPurchase
public LogKingdomItemPurchase() -
LogKingdomItemPurchase
public LogKingdomItemPurchase(double resourcePoints, UUID player, KingdomBuildingStyle<?, ?, ?> style, int amount)
-
-
Method Details
-
getAmount
public int getAmount() -
deserialize
public void deserialize(DeserializationContext<org.kingdoms.data.database.dataprovider.SectionableDataGetter> context) - Specified by:
deserializein interfaceorg.kingdoms.data.Deserializable- Overrides:
deserializein classLogResourcePoints
-
getStyle
-
getStyleFromString
-
serialize
public void serialize(SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context) - Specified by:
serializein interfaceorg.kingdoms.data.Serializable- Overrides:
serializein classLogResourcePoints
-
addEdits
- Overrides:
addEditsin classLogResourcePoints
-