Package net.minecraft.village
Class TradeOffers.BuyForOneEmeraldFactory
java.lang.Object
net.minecraft.village.TradeOffers.BuyForOneEmeraldFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.BuyForOneEmeraldFactory extends Object implements TradeOffers.Factory
-
Field Summary
Fields Modifier and Type Field Description private Item
buy
private int
experience
private int
maxUses
private float
multiplier
private int
price
-
Constructor Summary
Constructors Constructor Description BuyForOneEmeraldFactory(ItemConvertible item, int price, int maxUses, int experience)
-
Method Summary
Modifier and Type Method Description TradeOffer
create(Entity entity, Random random)
Creates a trade offer.
-
Field Details
-
buy
-
price
private final int price -
maxUses
private final int maxUses -
experience
private final int experience -
multiplier
private final float multiplier
-
-
Constructor Details
-
BuyForOneEmeraldFactory
-
-
Method Details
-
create
Creates a trade offer.- Specified by:
create
in interfaceTradeOffers.Factory
- Returns:
- a new trade offer, or
null
if none should be created
-