Class CustomDropScreenFactory.Builder
java.lang.Object
com.pixelmonmod.pixelmon.api.drops.CustomDropScreenFactory.Builder
- Enclosing class:
- CustomDropScreenFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<CustomDropsEvent.ClickButton>
protected final net.minecraft.network.chat.Component[]
protected Consumer<CustomDropsEvent.CloseScreen>
protected BiConsumer<CustomDropsEvent.ClickDrop,
net.minecraft.world.item.ItemStack> protected boolean
protected List<net.minecraft.world.item.ItemStack>
protected String
protected net.minecraft.network.chat.Component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItem
(net.minecraft.world.item.ItemStack... stack) Deprecated.addItems
(Collection<net.minecraft.world.item.ItemStack> items) addItems
(net.minecraft.world.item.ItemStack... items) buttonHandler
(Consumer<CustomDropsEvent.ClickButton> buttonConsumer) closeHandler
(Consumer<CustomDropsEvent.CloseScreen> closeConsumer) dropHandler
(BiConsumer<CustomDropsEvent.ClickDrop, net.minecraft.world.item.ItemStack> dropConsumer) sendTo
(net.minecraft.server.level.ServerPlayer player) setButtonText
(PositionTriState position, net.minecraft.network.chat.Component text) setItems
(net.minecraft.world.item.ItemStack... items) setMnemonic
(String mnemonic) setTitle
(net.minecraft.network.chat.Component title)
-
Field Details
-
mnemonic
-
title
protected net.minecraft.network.chat.Component title -
items
-
buttons
protected final net.minecraft.network.chat.Component[] buttons -
closeConsumer
-
buttonConsumer
-
dropConsumer
-
escapeCloses
protected boolean escapeCloses
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setMnemonic
-
setTitle
-
setItems
-
setItems
-
addItems
public CustomDropScreenFactory.Builder addItems(Collection<net.minecraft.world.item.ItemStack> items) -
addItems
-
addItem
@Deprecated public CustomDropScreenFactory.Builder addItem(net.minecraft.world.item.ItemStack... stack) Deprecated. -
setButtonText
public CustomDropScreenFactory.Builder setButtonText(PositionTriState position, net.minecraft.network.chat.Component text) -
closeHandler
public CustomDropScreenFactory.Builder closeHandler(Consumer<CustomDropsEvent.CloseScreen> closeConsumer) -
buttonHandler
public CustomDropScreenFactory.Builder buttonHandler(Consumer<CustomDropsEvent.ClickButton> buttonConsumer) -
dropHandler
public CustomDropScreenFactory.Builder dropHandler(BiConsumer<CustomDropsEvent.ClickDrop, net.minecraft.world.item.ItemStack> dropConsumer) -
escapeCloses
-
escapeDoesNotClose
-
sendTo
-