mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Tweaks
This commit is contained in:
parent
286946e29f
commit
654a001990
3 changed files with 13 additions and 3 deletions
|
@ -92,9 +92,8 @@ public class ActuallyAdditions {
|
||||||
public ActuallyAdditions() {
|
public ActuallyAdditions() {
|
||||||
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
|
|
||||||
ActuallyBlocks.BLOCKS.register(eventBus);
|
ActuallyBlocks.init(eventBus);
|
||||||
ActuallyItems.ITEMS.register(eventBus);
|
ActuallyItems.init(eventBus);
|
||||||
ActuallyBlocks.TILES.register(eventBus);
|
|
||||||
ActuallyRecipes.init(eventBus);
|
ActuallyRecipes.init(eventBus);
|
||||||
ActuallyContainers.CONTAINERS.register(eventBus);
|
ActuallyContainers.CONTAINERS.register(eventBus);
|
||||||
ENTITIES.register(eventBus);
|
ENTITIES.register(eventBus);
|
||||||
|
|
|
@ -21,6 +21,7 @@ import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.tileentity.TileEntityType;
|
import net.minecraft.tileentity.TileEntityType;
|
||||||
import net.minecraftforge.common.ToolType;
|
import net.minecraftforge.common.ToolType;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
import net.minecraftforge.registries.DeferredRegister;
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
@ -278,4 +279,9 @@ public final class ActuallyBlocks {
|
||||||
public static AbstractBlock.Properties defaultPickProps(int harvestLevel) {
|
public static AbstractBlock.Properties defaultPickProps(int harvestLevel) {
|
||||||
return AbstractBlock.Properties.of(Material.STONE).harvestLevel(harvestLevel).harvestTool(ToolType.PICKAXE).strength(1.5F, 10.0F).sound(SoundType.STONE);
|
return AbstractBlock.Properties.of(Material.STONE).harvestLevel(harvestLevel).harvestTool(ToolType.PICKAXE).strength(1.5F, 10.0F).sound(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void init(IEventBus evt) {
|
||||||
|
BLOCKS.register(evt);
|
||||||
|
TILES.register(evt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ import net.minecraft.inventory.EquipmentSlotType;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.ItemTier;
|
import net.minecraft.item.ItemTier;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
import net.minecraftforge.fml.RegistryObject;
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
import net.minecraftforge.registries.DeferredRegister;
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
@ -257,4 +258,8 @@ public final class ActuallyItems {
|
||||||
public static Item.Properties defaultNonStacking() {
|
public static Item.Properties defaultNonStacking() {
|
||||||
return defaultProps().stacksTo(1);
|
return defaultProps().stacksTo(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void init(IEventBus evt) {
|
||||||
|
ITEMS.register(evt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue