2019-07-11 09:03:08 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2020-05-12 14:06:50 +02:00
|
|
|
import com.simibubi.create.modules.Sections;
|
2020-05-12 05:18:49 +02:00
|
|
|
import com.tterrag.registrate.util.entry.RegistryEntry;
|
2019-09-12 10:00:15 +02:00
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2019-07-11 09:03:08 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2020-05-12 14:06:50 +02:00
|
|
|
public class CreateItemGroup extends CreateItemGroupBase {
|
2019-07-11 09:03:08 +02:00
|
|
|
|
|
|
|
public CreateItemGroup() {
|
2020-05-12 14:06:50 +02:00
|
|
|
super("base");
|
2019-07-11 09:03:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-05-12 14:06:50 +02:00
|
|
|
protected boolean shouldAdd(RegistryEntry<? extends Block> block) {
|
|
|
|
Sections section = Create.registrate()
|
|
|
|
.getSection(block);
|
|
|
|
return section != Sections.PALETTES;
|
2019-07-11 09:03:08 +02:00
|
|
|
}
|
2019-12-19 22:35:45 +01:00
|
|
|
|
2019-09-12 10:00:15 +02:00
|
|
|
@Override
|
2020-05-12 14:06:50 +02:00
|
|
|
protected boolean shouldAdd(AllItems item) {
|
|
|
|
return item.section != Sections.PALETTES;
|
2019-12-19 22:35:45 +01:00
|
|
|
}
|
|
|
|
|
2020-05-12 14:06:50 +02:00
|
|
|
@Override
|
|
|
|
public ItemStack createIcon() {
|
|
|
|
return AllBlocksNew.COGWHEEL.asStack();
|
2019-09-12 10:00:15 +02:00
|
|
|
}
|
2019-12-19 22:35:45 +01:00
|
|
|
|
2019-07-11 09:03:08 +02:00
|
|
|
}
|