Class MerchantItemCost
java.lang.Object
com.github.retrooper.packetevents.protocol.recipe.data.MerchantItemCost
-
Constructor Summary
ConstructorDescriptionMerchantItemCost
(ItemType item) MerchantItemCost
(ItemType item, int count) MerchantItemCost
(ItemType item, int count, ComponentPredicate predicate) -
Method Summary
Modifier and TypeMethodDescriptionasItem()
static MerchantItemCost
int
getCount()
getItem()
static @Nullable MerchantItemCost
static MerchantItemCost
read
(PacketWrapper<?> wrapper) static ItemStack
readItem
(PacketWrapper<?> wrapper) void
setCount
(int count) void
void
setPredicate
(ComponentPredicate predicate) static void
write
(PacketWrapper<?> wrapper, MerchantItemCost cost) static void
writeItem
(PacketWrapper<?> wrapper, ItemStack costItem)
-
Constructor Details
-
MerchantItemCost
-
MerchantItemCost
-
MerchantItemCost
-
-
Method Details
-
ofItem
@Contract("null -> null; !null -> !null") @Nullable public static @Nullable MerchantItemCost ofItem(@Nullable @Nullable ItemStack stack) -
readItem
-
read
-
writeItem
-
write
-
emptyCost
-
asItem
-
getItem
-
setItem
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
getPredicate
-
setPredicate
-