mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-22 21:29:52 +00:00
Change up how removing groups is done, should fix most issues
This commit is contained in:
1 parent
89b384bdf6
commit
8bf33959e2
6 files changed
+72
-17
No files matched your search
@@ -40,9 +40,33 @@ public interface ICarvingRegistry {
|
||||
void addVariation(String groupName, ICarvingVariation variation);
|
||||
|
||||
void addGroup(ICarvingGroup group);
|
||||
|
||||
|
||||
ICarvingGroup removeGroup(String groupName);
|
||||
|
||||
/**
|
||||
* Removes a varaition with the passed {@link Block} and metadata from the registry. If this variation is registered with mutiple groups, it will remove it from all of them.
|
||||
*
|
||||
* @param block
|
||||
* The {@link Block} of the {@link ICarvingVariation variation}
|
||||
* @param metadata
|
||||
* The metadata of the {@link ICarvingVariation variation}
|
||||
* @return The ICarvingVariation that was removed. Null if nothing was removed.
|
||||
*/
|
||||
ICarvingVariation removeVariation(Block block, int metadata);
|
||||
|
||||
/**
|
||||
* Removes a varaition with the passed {@link Block} and metadata from the registry, but only from the specified {@link ICarvingGroup} name.
|
||||
*
|
||||
* @param block
|
||||
* The {@link Block} of the {@link ICarvingVariation variation}
|
||||
* @param metadata
|
||||
* The metadata of the {@link ICarvingVariation variation}
|
||||
* @param group
|
||||
* The name of the group that the variation should be removed from
|
||||
* @return The ICarvingVariation that was removed. Null if nothing was removed.
|
||||
*/
|
||||
ICarvingVariation removeVariation(Block block, int metadata, String group);
|
||||
|
||||
void registerOre(String groupName, String oreName);
|
||||
|
||||
void setVariationSound(String name, String sound);
|
||||
|
||||
Reference in new issue
Block a user