Class PlatformFabric
java.lang.Object
dev.tophatcat.sprucewillisthexmastree.platform.PlatformFabric
- All Implemented Interfaces:
IPlatform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisModLoaded(String modId) <E extends net.minecraft.world.entity.Mob>
Supplier<net.minecraft.world.item.SpawnEggItem> makeSpawnEgg(net.minecraft.world.item.Item.Properties itemProperties, Supplier<net.minecraft.world.entity.EntityType<E>> entityType) net.minecraft.world.item.CreativeModeTab.Builder<T extends net.minecraft.world.level.block.Block>
Supplier<T> registerBlock(String id, Supplier<T> block) <T extends net.minecraft.world.level.block.entity.BlockEntity>
Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String id, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType) <T extends net.minecraft.world.item.CreativeModeTab>
Supplier<T> registerCreativeModeTab(String id, Supplier<T> tab) <T extends net.minecraft.world.entity.Entity>
Supplier<net.minecraft.world.entity.EntityType<T>> registerEntity(String id, Supplier<net.minecraft.world.entity.EntityType<T>> entity) <T extends net.minecraft.world.item.Item>
Supplier<T> registerItem(String id, Supplier<T> item) <T extends net.minecraft.sounds.SoundEvent>
Supplier<T> registerSound(String id, Supplier<T> sound) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.tophatcat.sprucewillisthexmastree.platform.IPlatform
getEnvironmentName
-
Constructor Details
-
PlatformFabric
public PlatformFabric()
-
-
Method Details
-
getPlatformName
- Specified by:
getPlatformNamein interfaceIPlatform
-
isModLoaded
- Specified by:
isModLoadedin interfaceIPlatform
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()- Specified by:
isDevelopmentEnvironmentin interfaceIPlatform
-
registerBlockEntity
public <T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String id, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType) - Specified by:
registerBlockEntityin interfaceIPlatform
-
registerBlock
public <T extends net.minecraft.world.level.block.Block> Supplier<T> registerBlock(String id, Supplier<T> block) - Specified by:
registerBlockin interfaceIPlatform
-
registerEntity
public <T extends net.minecraft.world.entity.Entity> Supplier<net.minecraft.world.entity.EntityType<T>> registerEntity(String id, Supplier<net.minecraft.world.entity.EntityType<T>> entity) - Specified by:
registerEntityin interfaceIPlatform
-
registerItem
public <T extends net.minecraft.world.item.Item> Supplier<T> registerItem(String id, Supplier<T> item) - Specified by:
registerItemin interfaceIPlatform
-
registerSound
public <T extends net.minecraft.sounds.SoundEvent> Supplier<T> registerSound(String id, Supplier<T> sound) - Specified by:
registerSoundin interfaceIPlatform
-
registerCreativeModeTab
public <T extends net.minecraft.world.item.CreativeModeTab> Supplier<T> registerCreativeModeTab(String id, Supplier<T> tab) - Specified by:
registerCreativeModeTabin interfaceIPlatform
-
makeSpawnEgg
public <E extends net.minecraft.world.entity.Mob> Supplier<net.minecraft.world.item.SpawnEggItem> makeSpawnEgg(net.minecraft.world.item.Item.Properties itemProperties, Supplier<net.minecraft.world.entity.EntityType<E>> entityType) - Specified by:
makeSpawnEggin interfaceIPlatform
-
newCreativeTabBuilder
public net.minecraft.world.item.CreativeModeTab.Builder newCreativeTabBuilder()- Specified by:
newCreativeTabBuilderin interfaceIPlatform
-