001/*
002 * Forge Mod Loader
003 * Copyright (c) 2012-2013 cpw.
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser Public License v2.1
006 * which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
008 * 
009 * Contributors:
010 *     cpw - implementation
011 */
012
013package net.minecraft.src;
014
015/**
016 * Compatibility class for ModLoader -- do not use
017 *
018 * @author cpw
019 *
020 */
021public class TradeEntry
022{
023    public final int id;
024    public float chance;
025    public boolean buying;
026    public int min = 0;
027    public int max = 0;
028
029    public TradeEntry(int id, float chance, boolean buying, int min, int max)
030    {
031        this.id = id;
032        this.chance = chance;
033        this.buying = buying;
034        this.min = min;
035        this.max = max;
036    }
037
038    public TradeEntry(int id, float chance, boolean buying)
039    {
040        this(id, chance, buying, 0, 0);
041    }
042}