Skip to content

Instantly share code, notes, and snippets.

@TheMasteredPanda
Created January 21, 2017 23:22
Show Gist options
  • Save TheMasteredPanda/7b181d6038036b166f1dc1e17999ccef to your computer and use it in GitHub Desktop.
Save TheMasteredPanda/7b181d6038036b166f1dc1e17999ccef to your computer and use it in GitHub Desktop.
Listing.class for every Listing in MAuctionHouse
package me.themasteredpanda.mauctionhouse.api.auction;
import lombok.Getter;
import lombok.Setter;
import org.bukkit.inventory.ItemStack;
import java.util.UUID;
/**
* Created by TheMasteredPanda on 16/01/2017.
*/
public class Listing
{
private @Getter UUID listingID;
private @Getter UUID auctioneer;
private @Getter @Setter UUID highestCurrentBidder;
private @Getter long startPrice;
private @Getter @Setter long currentPrice;
private @Getter long lowestPossibleBid;
private @Getter ItemStack item;
private @Getter float listingDuration;
private @Getter boolean expired;
public Listing(UUID listingID, ItemStack item, UUID auctioneer, UUID highestCurrentBidder, long startPrice, long currentPrice, long lowestPossibleBid, float listingDuration, boolean expired)
{
this.listingID = listingID;
this.auctioneer = auctioneer;
this.startPrice = startPrice;
this.currentPrice = currentPrice;
this.lowestPossibleBid = lowestPossibleBid;
this.listingDuration = listingDuration;
this.expired = expired;
this.item = item;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment