public static class NoticeOverlay.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.item.ItemStack |
itemStack |
protected EnumOverlayLayout |
layout |
protected java.util.List<java.lang.String> |
lines |
protected PokemonSpec |
spec |
protected OverlayGraphicType |
type |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
|
Builder(EnumOverlayLayout layout,
java.lang.String line,
java.lang.String... extraLines)
Deprecated.
use
NoticeOverlay.builder() instead. |
protected java.util.List<java.lang.String> lines
protected EnumOverlayLayout layout
protected OverlayGraphicType type
protected PokemonSpec spec
protected net.minecraft.item.ItemStack itemStack
protected Builder()
@Deprecated public Builder(EnumOverlayLayout layout, java.lang.String line, java.lang.String... extraLines)
NoticeOverlay.builder()
instead.public NoticeOverlay.Builder setPokemonSprite(PokemonSpec spec)
public NoticeOverlay.Builder setPokemon3D(PokemonSpec spec)
public NoticeOverlay.Builder setItemStack(net.minecraft.item.ItemStack itemStack)
public NoticeOverlay.Builder setEmpty()
@Deprecated public NoticeOverlay.Builder setIconToPokemonSprite(EnumSpecies pokemon)
setPokemonSprite(PokemonSpec)
instead.@Deprecated public NoticeOverlay.Builder setIconToPokemonModel(EnumSpecies pokemon, float scale)
setPokemon3D(PokemonSpec)
instead.@Deprecated public NoticeOverlay.Builder setIconToItemSprite(net.minecraft.item.Item item)
setItemStack(ItemStack)
instead.@Deprecated public NoticeOverlay.Builder setIconToItemModel(net.minecraft.item.Item item)
setItemStack(ItemStack)
instead.public NoticeOverlay.Builder setLayout(EnumOverlayLayout layout)
public NoticeOverlay.Builder addLine(java.lang.String line)
public NoticeOverlay.Builder addLines(java.util.List<java.lang.String> lines)
public NoticeOverlay.Builder addLines(java.lang.String... lines)
public NoticeOverlay.Builder setLines(@Nullable java.util.List<java.lang.String> lines)
public NoticeOverlay.Builder setLines(@Nullable java.lang.String... lines)
public CustomNoticePacket build()
public void sendTo(net.minecraft.entity.player.EntityPlayerMP player)