Merge branch 'master' of https://github.com/paulevsGitch/BetterEnd
This commit is contained in:
commit
abe21e49d2
13 changed files with 81 additions and 12 deletions
|
@ -0,0 +1,16 @@
|
|||
package ru.betterend.blocks;
|
||||
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import ru.betterend.blocks.basis.BlockFeatureSapling;
|
||||
import ru.betterend.registry.FeatureRegistry;
|
||||
|
||||
public class BlockMossyPythadendronSapling extends BlockFeatureSapling {
|
||||
public BlockMossyPythadendronSapling() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Feature<?> getFeature() {
|
||||
return FeatureRegistry.PYTHADENDRON_TREE.getFeature();
|
||||
}
|
||||
}
|
16
src/main/java/ru/betterend/blocks/basis/BlockLeaves.java
Normal file
16
src/main/java/ru/betterend/blocks/basis/BlockLeaves.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package ru.betterend.blocks.basis;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.LeavesBlock;
|
||||
import net.minecraft.block.MaterialColor;
|
||||
|
||||
public class BlockLeaves extends LeavesBlock {
|
||||
public BlockLeaves(MaterialColor color) {
|
||||
super(FabricBlockSettings.copyOf(Blocks.OAK_LEAVES).materialColor(color));
|
||||
}
|
||||
|
||||
public BlockLeaves(MaterialColor color, int light) {
|
||||
super(FabricBlockSettings.copyOf(Blocks.OAK_LEAVES).materialColor(color).lightLevel(light));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue