Folder migration

This commit is contained in:
Michael Hillcox 2020-11-04 16:33:06 +00:00
parent 4ea1fb313a
commit f98b246f44
No known key found for this signature in database
GPG key ID: 971C5B254742488F
852 changed files with 45 additions and 3 deletions

View file

@ -373,13 +373,13 @@ public class ActuallyBlocks {
// = BLOCKS.register();("wild_block", WildPlantBlock::new);
public static final RegistryObject<Block> blockQuartzWall
= BLOCKS.register("quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
= BLOCKS.register("quartz_wall_block", () -> new WallBlock(AbstractBlock.Properties.from(BLACK_QUARTS.get())));
public static final RegistryObject<Block> blockChiseledQuartzWall
= BLOCKS.register("chiseled_quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
= BLOCKS.register("chiseled_quartz_wall_block", () -> new WallBlock(AbstractBlock.Properties.from(BLACK_QUARTS_CHISELED.get())));
public static final RegistryObject<Block> blockPillarQuartzWall
= BLOCKS.register("pillar_quartz_wall_block", () -> new WallBlock(Block.Properties.create(Material.ROCK)));
= BLOCKS.register("pillar_quartz_wall_block", () -> new WallBlock(AbstractBlock.Properties.from(BLACK_QUARTS_PILLAR.get())));
public static final RegistryObject<Block> blockQuartzStair
= BLOCKS.register("quartz_stair_block", () -> new StairsBlock(() -> blockBlackLotus.get().getDefaultState(), Block.Properties.create(Material.ROCK)));

View file

@ -0,0 +1,21 @@
package de.ellpeck.actuallyadditions.common.blocks;
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
public class FenceBlock extends net.minecraft.block.FenceBlock implements IActuallyBlock {
public FenceBlock(Properties properties) {
super(properties);
}
@Override
public BlockItem createBlockItem() {
return new BlockItem(this, this.getItemProperties());
}
@Override
public Item.Properties getItemProperties() {
return new Item.Properties().group(ActuallyAdditions.ACTUALLY_GROUP);
}
}

View file

@ -0,0 +1,21 @@
package de.ellpeck.actuallyadditions.common.blocks;
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
public class WallBlock extends net.minecraft.block.WallBlock implements IActuallyBlock {
public WallBlock(Properties properties) {
super(properties);
}
@Override
public BlockItem createBlockItem() {
return new BlockItem(this, this.getItemProperties());
}
@Override
public Item.Properties getItemProperties() {
return new Item.Properties().group(ActuallyAdditions.ACTUALLY_GROUP);
}
}

Some files were not shown because too many files have changed in this diff Show more