Skip to content

Instantly share code, notes, and snippets.

View ApexModder's full-sized avatar
💭
Turn caffeine into code.

Apex ApexModder

💭
Turn caffeine into code.
View GitHub Profile
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(ID);
public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(ID);
public static final ColorCollection<DeferredHolder<Block, Block>> WOOL_BLOCKS = registerBlocks(
BLOCKS,
"wool",
(color, properties) -> new Block(properties),
color -> BlockBehaviour.Properties.ofFullCopy(Blocks.WOOL.pick(color))
);
{
"branches": {
"releases": {
"type": "release"
},
"snapshots": {
"type": "all"
},
"26.1.x": {
"type": "all",