NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockImpl.java

22 lines
538 B
Java
Raw Normal View History

2018-10-13 20:35:18 +02:00
package de.ellpeck.naturesaura.blocks;
import de.ellpeck.naturesaura.reg.IModItem;
import de.ellpeck.naturesaura.reg.ModRegistry;
2021-12-04 15:40:09 +01:00
import net.minecraft.world.level.block.Block;
2018-10-13 20:35:18 +02:00
2020-01-29 00:40:28 +01:00
public class BlockImpl extends Block implements IModItem {
2018-10-13 20:35:18 +02:00
private final String baseName;
2019-11-04 19:08:49 +01:00
public BlockImpl(String baseName, Block.Properties properties) {
super(properties);
2018-10-13 20:35:18 +02:00
this.baseName = baseName;
2022-06-27 15:24:04 +02:00
ModRegistry.ALL_ITEMS.add(this);
2018-10-13 20:35:18 +02:00
}
@Override
public String getBaseName() {
return this.baseName;
}
}