Implemented AllBogeyStyles

This commit is contained in:
Rabbitminers 2023-03-24 23:43:08 +00:00
parent c9e71b462d
commit 3dfb9e3b3b

View file

@ -0,0 +1,29 @@
package com.simibubi.create;
import com.simibubi.create.content.logistics.trains.BogeyRenderer;
import com.simibubi.create.content.logistics.trains.entity.BogeyStyle;
import com.simibubi.create.content.logistics.trains.entity.StandardBogeyInstance;
import com.tterrag.registrate.util.entry.RegistryEntry;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import static com.simibubi.create.Create.REGISTRATE;
@SuppressWarnings("unused")
public class AllBogeyStyles {
public static final DeferredRegister<BogeyStyle> BOGEYS = DeferredRegister.create(AllRegistries.BOGEY_NAME, Create.ID);
public static final RegistryEntry<BogeyStyle> STANDARD = REGISTRATE
.bogeyStyle("standard", new BogeyStyle(StandardBogeyInstance.class))
.block(BogeyRenderer.BogeySize.SMALL, AllBlocks.SMALL_BOGEY.get())
.block(BogeyRenderer.BogeySize.LARGE, AllBlocks.LARGE_BOGEY.get())
.register();
public static void register() {
BOGEYS.register(FMLJavaModLoadingContext.get().getModEventBus());
}
}