Class MerchantItemCost
java.lang.Object
com.github.retrooper.packetevents.protocol.recipe.data.MerchantItemCost
-
Constructor Summary
ConstructorsConstructorDescriptionMerchantItemCost(ItemType item) MerchantItemCost(ItemType item, int count) MerchantItemCost(ItemType item, int count, ComponentPredicate predicate) -
Method Summary
Modifier and TypeMethodDescriptionasItem()static MerchantItemCostintgetCount()getItem()static @Nullable MerchantItemCoststatic MerchantItemCostread(PacketWrapper<?> wrapper) static ItemStackreadItem(PacketWrapper<?> wrapper) voidsetCount(int count) voidvoidsetPredicate(ComponentPredicate predicate) static voidwrite(PacketWrapper<?> wrapper, MerchantItemCost cost) static voidwriteItem(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
-