-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
036db3d
commit 0ca6435
Showing
11 changed files
with
110 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
loader-common/src/main/java/org/cyclops/colossalchests/GeneralConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.cyclops.colossalchests; | ||
|
||
import org.cyclops.cyclopscore.config.ConfigurablePropertyCommon; | ||
import org.cyclops.cyclopscore.config.ModConfigLocation; | ||
import org.cyclops.cyclopscore.config.extendedconfig.DummyConfigCommon; | ||
import org.cyclops.cyclopscore.init.IModBase; | ||
|
||
/** | ||
* A config with general options for this mod. | ||
* @author rubensworks | ||
* | ||
*/ | ||
public class GeneralConfig<M extends IModBase> extends DummyConfigCommon<M> { | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "If items should be ejected from the chests if one of the structure blocks are removed.", configLocation = ModConfigLocation.SERVER) | ||
public static boolean ejectItemsOnDestroy = false; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "If the higher tier metal variants (including diamond and obsidian) can be crafted.", configLocation = ModConfigLocation.SERVER) | ||
public static boolean metalVariants = true; | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "Maximum buffer byte size for adaptive inventory slots fragmentation.") | ||
public static int maxPacketBufferSize = 20000; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "If the interface input overlay should always be rendered on chests.", isCommandable = true, configLocation = ModConfigLocation.CLIENT) | ||
public static boolean alwaysShowInterfaceOverlay = true; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "Always create full creative-mode chests when formed. Should not be used in survival worlds!", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static boolean creativeChests = false; | ||
|
||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorWood = 1; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorCopper = 1.666; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorIron = 2; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorSilver = 2.666; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorGold = 3; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorDiamond = 4; | ||
@ConfigurablePropertyCommon(category = "general", comment = "Multiplier for the number of inventory slots for this chest material.", isCommandable = true, configLocation = ModConfigLocation.SERVER) | ||
public static double chestInventoryMaterialFactorObsidian = 4; | ||
|
||
public GeneralConfig(M mod) { | ||
super(mod, "general"); | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
loader-common/src/main/java/org/cyclops/colossalchests/Reference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.cyclops.colossalchests; | ||
|
||
/** | ||
* Class that can hold basic static things that are better not hard-coded | ||
* like mod details, texture paths, ID's... | ||
* @author rubensworks | ||
* | ||
*/ | ||
@SuppressWarnings("javadoc") | ||
public class Reference { | ||
|
||
// Mod info | ||
public static final String MOD_ID = "colossalchests"; | ||
public static final String GA_TRACKING_ID = "UA-65307010-5"; | ||
|
||
// MOD ID's | ||
public static final String MOD_IRONCHEST = "ironchest"; | ||
public static final String MOD_COMMONCAPABILITIES = "commoncapabilities"; | ||
} |
29 changes: 29 additions & 0 deletions
29
loader-common/src/main/java/org/cyclops/colossalchests/RegistryEntriesCommon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.cyclops.colossalchests; | ||
|
||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import org.cyclops.cyclopscore.config.DeferredHolderCommon; | ||
|
||
/** | ||
* Referenced registry entries. | ||
* @author rubensworks | ||
*/ | ||
public class RegistryEntriesCommon { // TODO: rename when done | ||
|
||
public static final DeferredHolderCommon<Item, Item> ITEM_CHEST = DeferredHolderCommon.create(Registries.ITEM, ResourceLocation.parse("minecraft:chest")); | ||
|
||
public static final DeferredHolderCommon<Block, Block> BLOCK_UNCOLOSSAL_CHEST = DeferredHolderCommon.create(Registries.BLOCK, ResourceLocation.parse("colossalchests:uncolossal_chest")); | ||
|
||
// TODO | ||
// public static final DeferredHolderCommon<BlockEntityType<?>, BlockEntityType<BlockEntityColossalChest>> BLOCK_ENTITY_COLOSSAL_CHEST = DeferredHolderCommon.create(Registries.BLOCK_ENTITY_TYPE, ResourceLocation.parse("colossalchests:colossal_chest")); | ||
// public static final DeferredHolderCommon<BlockEntityType<?>, BlockEntityType<BlockEntityInterface>> BLOCK_ENTITY_INTERFACE = DeferredHolderCommon.create(Registries.BLOCK_ENTITY_TYPE, ResourceLocation.parse("colossalchests:interface")); | ||
// public static final DeferredHolderCommon<BlockEntityType<?>, BlockEntityType<BlockEntityUncolossalChest>> BLOCK_ENTITY_UNCOLOSSAL_CHEST = DeferredHolderCommon.create(Registries.BLOCK_ENTITY_TYPE, ResourceLocation.parse("colossalchests:uncolossal_chest")); | ||
// | ||
// public static final DeferredHolderCommon<MenuType<?>, MenuType<ContainerColossalChest>> CONTAINER_COLOSSAL_CHEST = DeferredHolderCommon.create(Registries.MENU, ResourceLocation.parse("colossalchests:colossal_chest")); | ||
// public static final DeferredHolderCommon<MenuType<?>, MenuType<ContainerUncolossalChest>> CONTAINER_UNCOLOSSAL_CHEST = DeferredHolderCommon.create(Registries.MENU, ResourceLocation.parse("colossalchests:uncolossal_chest")); | ||
// | ||
// public static final DeferredHolderCommon<CriterionTrigger<?>, ChestFormedTrigger> TRIGGER_CHEST_FORMED = DeferredHolderCommon.create(Registries.TRIGGER_TYPE, ResourceLocation.parse("colossalchests:chest_formed")); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 0 additions & 76 deletions
76
loader-neoforge/src/main/java/org/cyclops/colossalchests/GeneralConfig.java
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
loader-neoforge/src/main/java/org/cyclops/colossalchests/Reference.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters