Tweaks
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-03 19:48:02 -04:00
parent 7d72aefec6
commit fc23ad31ff
4 changed files with 19 additions and 1 deletions

View File

@ -18,4 +18,9 @@ public class CreativeEnergySourceBlock extends EnergyBlock {
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
return CreativeEnergySourceBlockEntity::new;
}
@Override
protected boolean isEpic() {
return true;
}
}

View File

@ -70,6 +70,11 @@ public class StructureGeneratorBlock extends SimpleBlockWithEntity {
return false;
}
@Override
protected boolean isEpic() {
return true;
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
super.appendProperties(builder);

View File

@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
import net.minecraft.util.registry.Registry;
public class SimpleBlock extends Block {
@ -20,6 +21,9 @@ public class SimpleBlock extends Block {
if (addToItemGroup() || FabricLoader.getInstance().isDevelopmentEnvironment()) {
settings.group(EnergonRelics.ITEM_GROUP);
}
if (isEpic()) {
settings.rarity(Rarity.EPIC);
}
settings.maxCount(getMaxCount());
Registry.register(Registry.ITEM, new Identifier(EnergonRelics.NAMESPACE, name), new BlockItem(this, settings));
}
@ -36,4 +40,8 @@ public class SimpleBlock extends Block {
protected int getMaxCount() {
return 64;
}
protected boolean isEpic() {
return false;
}
}

View File

@ -20,7 +20,7 @@
"item.energonrelics.veridium_ingot": "Veridium Ingot",
"block.energonrelics.veridium_ore": "Veridium Ore",
"block.energonrelics.veridium_block": "Veridium Block",
"item.energonrelics.defensive_laser_core": "Defensive laser Core",
"item.energonrelics.defensive_laser_core": "Defensive Laser Core",
"block.energonrelics.defensive_laser": "Defensive Laser",
"text.autoconfig.energonrelics.title": "EnergonRelics",
"text.autoconfig.energonrelics.option.textureSet": "Texture Set",