Search in sources :

Example 1 with ItemTypeBuilderImpl

use of org.lanternpowered.server.item.ItemTypeBuilderImpl in project LanternServer by LanternPowered.

the class BlockTypeBuilderImpl method itemType.

@Override
public BlockTypeBuilderImpl itemType(Consumer<ItemTypeBuilder> consumer) {
    checkNotNull(consumer, "consumer");
    if (this.itemTypeBuilder == null) {
        this.itemTypeBuilder = new ItemTypeBuilderImpl();
    }
    consumer.accept(this.itemTypeBuilder);
    return this;
}
Also used : ItemTypeBuilderImpl(org.lanternpowered.server.item.ItemTypeBuilderImpl)

Aggregations

ItemTypeBuilderImpl (org.lanternpowered.server.item.ItemTypeBuilderImpl)1