public static class CustomDropScreenFactory.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.function.Consumer<CustomDropsEvent.ClickButton> |
buttonConsumer |
protected net.minecraft.util.text.ITextComponent[] |
buttons |
protected java.util.function.Consumer<CustomDropsEvent.CloseScreen> |
closeConsumer |
protected java.util.function.BiConsumer<CustomDropsEvent.ClickDrop,net.minecraft.item.ItemStack> |
dropConsumer |
protected boolean |
escapeCloses |
protected java.util.List<net.minecraft.item.ItemStack> |
items |
protected java.lang.String |
mnemonic |
protected net.minecraft.util.text.ITextComponent |
title |
Constructor and Description |
---|
Builder() |
protected java.lang.String mnemonic
protected net.minecraft.util.text.ITextComponent title
protected java.util.List<net.minecraft.item.ItemStack> items
protected final net.minecraft.util.text.ITextComponent[] buttons
protected java.util.function.Consumer<CustomDropsEvent.CloseScreen> closeConsumer
protected java.util.function.Consumer<CustomDropsEvent.ClickButton> buttonConsumer
protected java.util.function.BiConsumer<CustomDropsEvent.ClickDrop,net.minecraft.item.ItemStack> dropConsumer
protected boolean escapeCloses
public CustomDropScreenFactory.Builder setMnemonic(java.lang.String mnemonic)
public CustomDropScreenFactory.Builder setTitle(net.minecraft.util.text.ITextComponent title)
public CustomDropScreenFactory.Builder setItems(java.util.List<net.minecraft.item.ItemStack> items)
public CustomDropScreenFactory.Builder setItems(net.minecraft.item.ItemStack... items)
public CustomDropScreenFactory.Builder addItems(java.util.Collection<net.minecraft.item.ItemStack> items)
public CustomDropScreenFactory.Builder addItems(net.minecraft.item.ItemStack... items)
@Deprecated public CustomDropScreenFactory.Builder addItem(net.minecraft.item.ItemStack... stack)
public CustomDropScreenFactory.Builder setButtonText(PositionTriState position, net.minecraft.util.text.ITextComponent text)
public CustomDropScreenFactory.Builder closeHandler(java.util.function.Consumer<CustomDropsEvent.CloseScreen> closeConsumer)
public CustomDropScreenFactory.Builder buttonHandler(java.util.function.Consumer<CustomDropsEvent.ClickButton> buttonConsumer)
public CustomDropScreenFactory.Builder dropHandler(java.util.function.BiConsumer<CustomDropsEvent.ClickDrop,net.minecraft.item.ItemStack> dropConsumer)
public CustomDropScreenFactory.Builder escapeCloses()
public CustomDropScreenFactory.Builder escapeDoesNotClose()
public java.lang.String sendTo(net.minecraft.entity.player.ServerPlayerEntity player)