-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
061434f
commit a93b719
Showing
56 changed files
with
437 additions
and
668 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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/org/cyclops/everlastingabilities/Capabilities.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,28 @@ | ||
package org.cyclops.everlastingabilities; | ||
|
||
import net.minecraft.core.Direction; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.neoforged.neoforge.capabilities.BlockCapability; | ||
import net.neoforged.neoforge.capabilities.EntityCapability; | ||
import net.neoforged.neoforge.capabilities.ItemCapability; | ||
import org.cyclops.everlastingabilities.api.capability.IAbilityStore; | ||
import org.cyclops.everlastingabilities.api.capability.IMutableAbilityStore; | ||
|
||
/** | ||
* @author rubensworks | ||
*/ | ||
public class Capabilities { | ||
|
||
public static final class AbilityStore { | ||
public static final BlockCapability<IAbilityStore, Direction> BLOCK = BlockCapability.createSided(new ResourceLocation(Reference.MOD_ID, "ability_store"), IAbilityStore.class); | ||
public static final ItemCapability<IAbilityStore, Void> ITEM = ItemCapability.createVoid(new ResourceLocation(Reference.MOD_ID, "ability_store"), IAbilityStore.class); | ||
public static final EntityCapability<IAbilityStore, Void> ENTITY = EntityCapability.createVoid(new ResourceLocation(Reference.MOD_ID, "ability_store"), IAbilityStore.class); | ||
} | ||
|
||
public static final class MutableAbilityStore { | ||
public static final BlockCapability<IMutableAbilityStore, Direction> BLOCK = BlockCapability.createSided(new ResourceLocation(Reference.MOD_ID, "mutable_ability_store"), IMutableAbilityStore.class); | ||
public static final ItemCapability<IMutableAbilityStore, Void> ITEM = ItemCapability.createVoid(new ResourceLocation(Reference.MOD_ID, "mutable_ability_store"), IMutableAbilityStore.class); | ||
public static final EntityCapability<IMutableAbilityStore, Void> ENTITY = EntityCapability.createVoid(new ResourceLocation(Reference.MOD_ID, "mutable_ability_store"), IMutableAbilityStore.class); | ||
} | ||
|
||
} |
Oops, something went wrong.