mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 21:09:51 +00:00
Fix #1256 Use the same lowercase "forestry" for all MOD_ID and resources
This commit is contained in:
1 parent
96f941f6e6
commit
2117be96cd
34 files changed
+56
-57
No files matched your search
@@ -83,7 +83,7 @@ public class Forestry {
|
||||
MinecraftForge.EVENT_BUS.register(eventHandlerCore);
|
||||
MinecraftForge.EVENT_BUS.register(new MultiblockEventHandler());
|
||||
|
||||
configFolder = new File(event.getModConfigurationDirectory(), Constants.RESOURCE_ID);
|
||||
configFolder = new File(event.getModConfigurationDirectory(), Constants.MOD_ID);
|
||||
Config.load();
|
||||
|
||||
PluginManager.runSetup(event);
|
||||
|
||||
@@ -35,9 +35,9 @@ public enum BlockTypeApicultureTesr implements IBlockTypeTesr {
|
||||
|
||||
<T extends TileForestry> BlockTypeApicultureTesr(@Nonnull Class<T> teClass, @Nonnull String name, @Nullable TileEntitySpecialRenderer<? super T> renderer, @Nullable AxisAlignedBB boundingBox) {
|
||||
if (boundingBox != null) {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
} else {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@ public class ItemArmorApiarist extends ItemArmor implements IArmorApiarist, IArm
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
|
||||
if (stack != null && stack.getItem() == PluginApiculture.items.apiaristLegs) {
|
||||
return Constants.RESOURCE_ID + ":" + Constants.TEXTURE_APIARIST_ARMOR_SECONDARY;
|
||||
return Constants.MOD_ID + ":" + Constants.TEXTURE_APIARIST_ARMOR_SECONDARY;
|
||||
} else {
|
||||
return Constants.RESOURCE_ID + ":" + Constants.TEXTURE_APIARIST_ARMOR_PRIMARY;
|
||||
return Constants.MOD_ID + ":" + Constants.TEXTURE_APIARIST_ARMOR_PRIMARY;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class FruitProviderNone implements IFruitProvider {
|
||||
|
||||
public OverlayType(String ident) {
|
||||
this.ident = ident;
|
||||
this.sprite = new ResourceLocation(Constants.RESOURCE_ID, "blocks/leaves/fruits." + ident);
|
||||
this.sprite = new ResourceLocation(Constants.MOD_ID, "blocks/leaves/fruits." + ident);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public class WoodHelper {
|
||||
WoodBlockKind blockKind = typed.getBlockKind();
|
||||
for (IWoodType woodType : typed.getWoodTypes()) {
|
||||
if (woodType instanceof EnumForestryWoodType) {
|
||||
resourceLocations.add(new ResourceLocation(Constants.RESOURCE_ID, blockKind + "/" + woodType));
|
||||
resourceLocations.add(new ResourceLocation(Constants.MOD_ID, blockKind + "/" + woodType));
|
||||
} else if (woodType instanceof EnumVanillaWoodType) {
|
||||
resourceLocations.add(new ResourceLocation("minecraft", woodType + "_" + blockKind));
|
||||
}
|
||||
|
||||
@@ -35,9 +35,9 @@ public enum BlockTypeArboricultureTesr implements IBlockTypeTesr {
|
||||
|
||||
<T extends TileForestry> BlockTypeArboricultureTesr(@Nonnull Class<T> teClass, @Nonnull String name, @Nullable TileEntitySpecialRenderer<? super T> renderer, @Nullable AxisAlignedBB boundingBox) {
|
||||
if (boundingBox != null) {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
} else {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class WoodTypeStateMapper extends StateMapperBase {
|
||||
private ModelResourceLocation getForestryModelResourceLocation(IWoodType woodType, Map<IProperty<?>, Comparable<?>> properties) {
|
||||
String resourceLocation = "arboriculture/" + blockPath + '/' + woodType;
|
||||
String propertyString = this.getPropertyString(properties);
|
||||
return new ModelResourceLocation(Constants.RESOURCE_ID + ':' + resourceLocation, propertyString);
|
||||
return new ModelResourceLocation(Constants.MOD_ID + ':' + resourceLocation, propertyString);
|
||||
}
|
||||
|
||||
private ModelResourceLocation getVanillaModelResourceLocation(Block block, IWoodType woodType, Map<IProperty<?>, Comparable<?>> properties) {
|
||||
|
||||
@@ -42,8 +42,8 @@ public class WoodProvider implements IWoodProvider {
|
||||
@Override
|
||||
public void registerSprites(Item item, ITextureManager manager) {
|
||||
TextureMap textureMap = Proxies.common.getClientInstance().getTextureMapBlocks();
|
||||
woodTop = textureMap.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/wood/heart." + name));
|
||||
woodBark = textureMap.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/wood/bark." + name));
|
||||
woodTop = textureMap.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/wood/heart." + name));
|
||||
woodBark = textureMap.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/wood/bark." + name));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -48,10 +48,10 @@ public class TextureLeaves {
|
||||
|
||||
private TextureLeaves(EnumLeafType enumLeafType) {
|
||||
String ident = enumLeafType.toString().toLowerCase(Locale.ENGLISH);
|
||||
this.plain = new ResourceLocation(Constants.RESOURCE_ID, "blocks/leaves/" + ident + ".plain");
|
||||
this.fancy = new ResourceLocation(Constants.RESOURCE_ID, "blocks/leaves/" + ident + ".fancy");
|
||||
this.pollinatedPlain = new ResourceLocation(Constants.RESOURCE_ID, "blocks/leaves/" + ident + ".changed.plain");
|
||||
this.pollinatedFancy = new ResourceLocation(Constants.RESOURCE_ID, "blocks/leaves/" + ident + ".changed");
|
||||
this.plain = new ResourceLocation(Constants.MOD_ID, "blocks/leaves/" + ident + ".plain");
|
||||
this.fancy = new ResourceLocation(Constants.MOD_ID, "blocks/leaves/" + ident + ".fancy");
|
||||
this.pollinatedPlain = new ResourceLocation(Constants.MOD_ID, "blocks/leaves/" + ident + ".changed.plain");
|
||||
this.pollinatedFancy = new ResourceLocation(Constants.MOD_ID, "blocks/leaves/" + ident + ".changed");
|
||||
}
|
||||
|
||||
private void registerSprites() {
|
||||
|
||||
@@ -25,7 +25,7 @@ public class FruitPodStateMapper extends ForestryStateMapper {
|
||||
String modID = fruit.getModID();
|
||||
if (Constants.MOD_ID.equals(modID)) {
|
||||
String modelName = fruit.getModelName();
|
||||
String resourcePath = Constants.RESOURCE_ID + ":pods/" + modelName;
|
||||
String resourcePath = Constants.MOD_ID + ":pods/" + modelName;
|
||||
for (IBlockState state : block.getBlockState().getValidStates()) {
|
||||
String propertyString = getPropertyString(state.getProperties());
|
||||
mapStateModelLocations.put(state, new ModelResourceLocation(resourcePath, propertyString));
|
||||
|
||||
@@ -27,7 +27,7 @@ public class PileStateMapper extends ForestryStateMapper {
|
||||
|
||||
@Override
|
||||
public Map<IBlockState, ModelResourceLocation> putStateModelLocations(Block block) {
|
||||
String location = Constants.RESOURCE_ID + ":pile";
|
||||
String location = Constants.MOD_ID + ":pile";
|
||||
|
||||
IBlockState woodPileState = PluginArboriculture.blocks.piles.get(EnumPileType.WOOD).getDefaultState();
|
||||
mapStateModelLocations.put(woodPileState, new ModelResourceLocation(location, "type=wood"));
|
||||
|
||||
@@ -41,7 +41,7 @@ public class CreativeTabForestry extends CreativeTabs {
|
||||
}
|
||||
}
|
||||
|
||||
public static final CreativeTabs tabForestry = new CreativeTabForestry(0, Constants.RESOURCE_ID);
|
||||
public static final CreativeTabs tabForestry = new CreativeTabForestry(0, Constants.MOD_ID);
|
||||
|
||||
private final int icon;
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ public class EventHandlerCore {
|
||||
return;
|
||||
}
|
||||
|
||||
ResourceLocation resourceLocation = new ResourceLocation(Constants.RESOURCE_ID, event.getName().getResourcePath());
|
||||
ResourceLocation resourceLocation = new ResourceLocation(Constants.MOD_ID, event.getName().getResourcePath());
|
||||
LootTable forestryChestAdditions = LootTableLoader.loadBuiltinLootTable(resourceLocation);
|
||||
if (forestryChestAdditions != null) {
|
||||
for (String poolName : PluginManager.getLootPoolNames()) {
|
||||
|
||||
@@ -31,7 +31,7 @@ public enum BlockTypeCoreTesr implements IBlockTypeTesr {
|
||||
private final IMachinePropertiesTesr machineProperties;
|
||||
|
||||
<T extends TileForestry> BlockTypeCoreTesr(@Nonnull Class<T> teClass, @Nonnull String name, @Nullable TileEntitySpecialRenderer<T> renderer) {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -119,7 +119,7 @@ public final class CommandSaveStats extends SubCommand {
|
||||
}
|
||||
}
|
||||
|
||||
File file = new File(Proxies.common.getForestryRoot(), "config/" + Constants.RESOURCE_ID + "/stats/" + player.getDisplayName() + '-' + saveHelper.getFileSuffix() + ".log");
|
||||
File file = new File(Proxies.common.getForestryRoot(), "config/" + Constants.MOD_ID + "/stats/" + player.getDisplayName() + '-' + saveHelper.getFileSuffix() + ".log");
|
||||
try {
|
||||
File folder = file.getParentFile();
|
||||
if (folder != null && !folder.exists()) {
|
||||
|
||||
@@ -16,8 +16,7 @@ import forestry.api.core.IForestryConstants;
|
||||
|
||||
public class Constants implements IForestryConstants {
|
||||
// System
|
||||
public static final String MOD_ID = "Forestry";
|
||||
public static final String RESOURCE_ID = "forestry";
|
||||
public static final String MOD_ID = "forestry";
|
||||
public static final String URL = "http://forestry.sengir.net/";
|
||||
|
||||
public static final String VERSION = "@VERSION@";
|
||||
@@ -41,15 +40,15 @@ public class Constants implements IForestryConstants {
|
||||
public static final String TEXTURE_APIARIST_ARMOR_PRIMARY = TEXTURE_PATH_ITEMS + "/apiarist_armor_1.png";
|
||||
public static final String TEXTURE_APIARIST_ARMOR_SECONDARY = TEXTURE_PATH_ITEMS + "/apiarist_armor_2.png";
|
||||
public static final String TEXTURE_NATURALIST_ARMOR_PRIMARY = TEXTURE_PATH_ITEMS + "/naturalist_armor_1.png";
|
||||
public static final String TEXTURE_SKIN_BEEKPEEPER = RESOURCE_ID + ":" + TEXTURE_PATH_ENTITIES + "/beekeeper.png";
|
||||
public static final String TEXTURE_SKIN_LUMBERJACK = RESOURCE_ID + ":" + TEXTURE_PATH_ENTITIES + "/lumberjack.png";
|
||||
public static final String TEXTURE_SKIN_BEEKPEEPER = Constants.MOD_ID + ":" + TEXTURE_PATH_ENTITIES + "/beekeeper.png";
|
||||
public static final String TEXTURE_SKIN_LUMBERJACK = Constants.MOD_ID + ":" + TEXTURE_PATH_ENTITIES + "/lumberjack.png";
|
||||
|
||||
// Villagers
|
||||
public static final String ID_VILLAGER_APIARIST = RESOURCE_ID + ":apiarist";
|
||||
public static final String ID_VILLAGER_ARBORIST = RESOURCE_ID + ":arborist";
|
||||
public static final String ID_VILLAGER_APIARIST = Constants.MOD_ID + ":apiarist";
|
||||
public static final String ID_VILLAGER_ARBORIST = Constants.MOD_ID + ":arborist";
|
||||
|
||||
// Village Loot Key
|
||||
public static final ResourceLocation VILLAGE_NATURALIST_LOOT_KEY = new ResourceLocation(RESOURCE_ID, "chests/village_naturalist");
|
||||
public static final ResourceLocation VILLAGE_NATURALIST_LOOT_KEY = new ResourceLocation(Constants.MOD_ID, "chests/village_naturalist");
|
||||
|
||||
// Item Ids
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ public enum EnumErrorCode implements IErrorState {
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void registerSprite() {
|
||||
texture = TextureManager.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "gui/errors/" + iconName));
|
||||
texture = TextureManager.registerSprite(new ResourceLocation(Constants.MOD_ID, "gui/errors/" + iconName));
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -36,7 +36,7 @@ public class ItemArmorNaturalist extends ItemArmor implements IArmorNaturalist,
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
|
||||
return Constants.RESOURCE_ID + ":" + Constants.TEXTURE_NATURALIST_ARMOR_PRIMARY;
|
||||
return Constants.MOD_ID + ":" + Constants.TEXTURE_NATURALIST_ARMOR_PRIMARY;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -157,7 +157,7 @@ public class ModelManager implements IModelManager {
|
||||
|
||||
@Override
|
||||
public ModelResourceLocation getModelLocation(String identifier) {
|
||||
return getModelLocation(Constants.RESOURCE_ID, identifier);
|
||||
return getModelLocation(Constants.MOD_ID, identifier);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,7 +17,7 @@ import forestry.core.config.Constants;
|
||||
public class ForestryResource extends ResourceLocation {
|
||||
|
||||
public ForestryResource(String path) {
|
||||
super(Constants.RESOURCE_ID, path);
|
||||
super(Constants.MOD_ID, path);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -59,7 +59,7 @@ public class TextureManager implements ITextureManager {
|
||||
"slots/blocked", "slots/blocked_2", "slots/liquid", "slots/container", "slots/locked",
|
||||
"mail/carrier.player", "mail/carrier.trader"};
|
||||
for (String identifier : defaultIconNames) {
|
||||
ResourceLocation resourceLocation = new ResourceLocation(Constants.RESOURCE_ID, "gui/" + identifier);
|
||||
ResourceLocation resourceLocation = new ResourceLocation(Constants.MOD_ID, "gui/" + identifier);
|
||||
TextureAtlasSprite icon = registerSprite(resourceLocation);
|
||||
defaultIcons.put(identifier, icon);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class Log {
|
||||
}
|
||||
|
||||
private static void log(Level logLevel, String message, Object... params) {
|
||||
LogManager.getLogger(Constants.RESOURCE_ID).log(logLevel, message, params);
|
||||
LogManager.getLogger(Constants.MOD_ID).log(logLevel, message, params);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -46,12 +46,12 @@ public enum BlockTypeEngine implements IBlockTypeTesr {
|
||||
|
||||
protected static IMachinePropertiesTesr<?> createEngineProperties(@Nonnull Class<? extends TileEngine> teClass, @Nonnull String name, @Nonnull String textureName) {
|
||||
TileEntitySpecialRenderer<TileEngine> renderer = PluginEnergy.proxy.getRenderDefaultEngine(Constants.TEXTURE_PATH_BLOCKS + textureName + "_");
|
||||
return new MachinePropertiesEngine<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks" + textureName + ".0");
|
||||
return new MachinePropertiesEngine<>(teClass, name, renderer, Constants.MOD_ID + ":blocks" + textureName + ".0");
|
||||
}
|
||||
|
||||
protected static IMachinePropertiesTesr<?> createMachineProperties(@Nonnull Class<? extends TileBase> teClass, @Nonnull String name, @Nonnull String textureName) {
|
||||
TileEntitySpecialRenderer<TileBase> renderer = Proxies.render.getRenderDefaultMachine(Constants.TEXTURE_PATH_BLOCKS + textureName + "_");
|
||||
return new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks" + textureName + ".0");
|
||||
return new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks" + textureName + ".0");
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -47,11 +47,11 @@ public enum BlockTypeFactoryTesr implements IBlockTypeTesr {
|
||||
|
||||
<T extends TileBase> BlockTypeFactoryTesr(@Nonnull Class<T> teClass, @Nonnull String name) {
|
||||
TileEntitySpecialRenderer<TileBase> renderer = Proxies.render.getRenderDefaultMachine(Constants.TEXTURE_PATH_BLOCKS + "/" + name + "_");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
|
||||
<T extends TileBase> BlockTypeFactoryTesr(@Nonnull Class<T> teClass, @Nonnull String name, @Nullable TileEntitySpecialRenderer<? super T> renderer) {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -41,14 +41,14 @@ public enum EnumFarmBlockType implements IStringSerializable {
|
||||
public static void registerSprites() {
|
||||
TextureMap map = Proxies.common.getClientInstance().getTextureMapBlocks();
|
||||
sprites = Arrays.asList(
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/plain")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/reverse")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/top")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/band")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/gears")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/hatch")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/valve")),
|
||||
map.registerSprite(new ResourceLocation(Constants.RESOURCE_ID, "blocks/farm/control"))
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/plain")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/reverse")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/top")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/band")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/gears")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/hatch")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/valve")),
|
||||
map.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/farm/control"))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ public enum BlockGreenhouseType {
|
||||
|
||||
for (BlockGreenhouseSprites sprite : BlockGreenhouseSprites.VALUES) {
|
||||
if (sprite != BlockGreenhouseSprites.PLAIN && sprite != BlockGreenhouseSprites.GLASS) {
|
||||
ResourceLocation location = new ResourceLocation(Constants.RESOURCE_ID, "blocks/greenhouse/" + sprite.spriteName);
|
||||
ResourceLocation location = new ResourceLocation(Constants.MOD_ID, "blocks/greenhouse/" + sprite.spriteName);
|
||||
TextureAtlasSprite textureAtlasSprite = map.registerSprite(location);
|
||||
sprites.put(sprite, textureAtlasSprite);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class TileGreenhouseSprinkler extends TileGreenhouseClimatiser {
|
||||
|
||||
public TileGreenhouseSprinkler() {
|
||||
super(definition);
|
||||
asm = Proxies.render.loadAnimationState(new ResourceLocation(Constants.RESOURCE_ID, "asms/block/sprinkler.json"), ImmutableMap.of(
|
||||
asm = Proxies.render.loadAnimationState(new ResourceLocation(Constants.MOD_ID, "asms/block/sprinkler.json"), ImmutableMap.of(
|
||||
"cycle_length", cycleLength,
|
||||
"click_time", clickTime
|
||||
));
|
||||
|
||||
@@ -35,9 +35,9 @@ public enum BlockTypeLepidopterologyTesr implements IBlockTypeTesr {
|
||||
|
||||
<T extends TileForestry> BlockTypeLepidopterologyTesr(@Nonnull Class<T> teClass, @Nonnull String name, @Nullable TileEntitySpecialRenderer<? super T> renderer, @Nullable AxisAlignedBB boundingBox) {
|
||||
if (boundingBox != null) {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, boundingBox, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
} else {
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.RESOURCE_ID + ":blocks/" + name + ".0");
|
||||
this.machineProperties = new MachinePropertiesTesr<>(teClass, name, renderer, Constants.MOD_ID + ":blocks/" + name + ".0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class CocoonStateMapper extends ForestryStateMapper {
|
||||
if(allele instanceof IAlleleButterflyCocoon){
|
||||
for(int age = 0;age < 3;age++){
|
||||
IAlleleButterflyCocoon cocoon = (IAlleleButterflyCocoon) allele;
|
||||
String resourcePath = Constants.RESOURCE_ID + ":cocoons/cocoon_" + cocoon.getCocoonName();
|
||||
String resourcePath = Constants.MOD_ID + ":cocoons/cocoon_" + cocoon.getCocoonName();
|
||||
IBlockState state = block.getDefaultState().withProperty(AlleleButterflyCocoon.COCOON, cocoon).withProperty(AlleleButterflyCocoon.AGE, age);
|
||||
String propertyString = "age=" + age;
|
||||
mapStateModelLocations.put(state, new ModelResourceLocation(resourcePath, propertyString));
|
||||
|
||||
@@ -315,7 +315,7 @@ public enum ButterflyDefinition implements IButterflyDefinition {
|
||||
|
||||
String texture = "butterflies/" + uid;
|
||||
|
||||
IAlleleButterflySpeciesBuilder speciesBuilder = ButterflyManager.butterflyFactory.createSpecies("forestry." + uid, unlocalizedName, "Sengir", unlocalizedDescription, Constants.RESOURCE_ID, texture, dominant, branchDefinition.getBranch(), binomial, serumColor);
|
||||
IAlleleButterflySpeciesBuilder speciesBuilder = ButterflyManager.butterflyFactory.createSpecies("forestry." + uid, unlocalizedName, "Sengir", unlocalizedDescription, Constants.MOD_ID, texture, dominant, branchDefinition.getBranch(), binomial, serumColor);
|
||||
speciesBuilder.setRarity(rarity);
|
||||
setSpeciesProperties(speciesBuilder);
|
||||
this.species = speciesBuilder.build();
|
||||
|
||||
@@ -75,7 +75,7 @@ public enum MothDefinition implements IButterflyDefinition {
|
||||
|
||||
String texture = "butterflies/" + uid;
|
||||
|
||||
IAlleleButterflySpeciesBuilder speciesBuilder = ButterflyManager.butterflyFactory.createSpecies("forestry." + uid, unlocalizedName, "Sengir", unlocalizedDescription, Constants.RESOURCE_ID, texture, dominant, branchDefinition.getBranch(), binomial, serumColor);
|
||||
IAlleleButterflySpeciesBuilder speciesBuilder = ButterflyManager.butterflyFactory.createSpecies("forestry." + uid, unlocalizedName, "Sengir", unlocalizedDescription, Constants.MOD_ID, texture, dominant, branchDefinition.getBranch(), binomial, serumColor);
|
||||
speciesBuilder.setRarity(rarity);
|
||||
speciesBuilder.setNocturnal();
|
||||
setSpeciesProperties(speciesBuilder);
|
||||
|
||||
@@ -78,7 +78,7 @@ public class AlleleButterflyCocoon extends AlleleCategorized implements IAlleleB
|
||||
|
||||
@Override
|
||||
public ModelResourceLocation getCocoonItemModel(int age) {
|
||||
return new ModelResourceLocation(Constants.RESOURCE_ID + ":lepidopterology/cocoons/cocoon_" + name + "_" + getAgeKey(age), "inventory");
|
||||
return new ModelResourceLocation(Constants.MOD_ID + ":lepidopterology/cocoons/cocoon_" + name + "_" + getAgeKey(age), "inventory");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,7 +28,7 @@ public class AlleleButterflyEffect extends AlleleCategorized implements IAlleleB
|
||||
}
|
||||
|
||||
protected AlleleButterflyEffect(String valueName, boolean isDominant) {
|
||||
super(Constants.RESOURCE_ID, "bf", valueName, isDominant);
|
||||
super(Constants.MOD_ID, "bf", valueName, isDominant);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user