mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 01:54:40 +00:00
32 lines
1.0 KiB
Java
32 lines
1.0 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
package forestry.api.mail;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
|
public class TradeStationInfo {
|
|
|
|
public final IMailAddress address;
|
|
public final GameProfile owner;
|
|
public final ItemStack tradegood;
|
|
public final ItemStack[] required;
|
|
public final IPostalState state;
|
|
|
|
public TradeStationInfo(IMailAddress address, GameProfile owner, ItemStack tradegood, ItemStack[] required,
|
|
IPostalState state) {
|
|
if (!address.isTrader()) {
|
|
throw new IllegalArgumentException("TradeStation address must be a trader");
|
|
}
|
|
this.address = address;
|
|
this.owner = owner;
|
|
this.tradegood = tradegood;
|
|
this.required = required;
|
|
this.state = state;
|
|
}
|
|
}
|