-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 秋雨落 <[email protected]>
- Loading branch information
Showing
19 changed files
with
103 additions
and
166 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
17 changes: 0 additions & 17 deletions
17
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/registry/BlockRegistry.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/registry/EffectRegistry.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/registry/ItemGroupRegistry.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/registry/ItemRegistry.java
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/registry/PotionRegistry.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
package cuteneko.catsplus.block; | ||
|
||
import cuteneko.catsplus.CatsPlus; | ||
import cuteneko.catsplus.item.group.ModItemGroups; | ||
import dev.architectury.registry.registries.DeferredRegister; | ||
import dev.architectury.registry.registries.RegistrySupplier; | ||
import net.minecraft.block.AbstractBlock; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.item.BlockItem; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.registry.RegistryKeys; | ||
|
||
public class ModBlocks { | ||
public static final Identifier ID_CAT_RESURRECTION_STATION = new Identifier(CatsPlus.MODID, "cat_resurrection_station"); | ||
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(CatsPlus.MODID, RegistryKeys.BLOCK); | ||
public static final DeferredRegister<Item> BLOCK_ITEMS = DeferredRegister.create(CatsPlus.MODID, RegistryKeys.ITEM); | ||
|
||
public static Block CAT_RESURRECTION_STATION = new CatResurrectionStationBlock(AbstractBlock.Settings.create().hardness(5f)); | ||
public static void register() { | ||
BLOCKS.register(); | ||
BLOCK_ITEMS.register(); | ||
} | ||
|
||
public static final RegistrySupplier<Block> CAT_RESURRECTION_STATION_BLOCK = BLOCKS.register("cat_resurrection_station", () -> new CatResurrectionStationBlock(AbstractBlock.Settings.create().hardness(5f))); | ||
public static final RegistrySupplier<Item> CAT_RESURRECTION_STATION = BLOCK_ITEMS.register("cat_resurrection_station", () -> new BlockItem(CAT_RESURRECTION_STATION_BLOCK.get(), new Item.Settings().arch$tab(ModItemGroups.CATS_PLUS))); | ||
} |
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package cuteneko.catsplus.effect; | ||
|
||
import cuteneko.catsplus.CatsPlus; | ||
import dev.architectury.registry.registries.DeferredRegister; | ||
import dev.architectury.registry.registries.RegistrySupplier; | ||
import net.minecraft.entity.effect.StatusEffect; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.registry.RegistryKeys; | ||
|
||
public class ModEffects { | ||
public static final Identifier ID_CATTIFY = new Identifier(CatsPlus.MODID, "cattify"); | ||
public static final DeferredRegister<StatusEffect> EFFECTS = DeferredRegister.create(CatsPlus.MODID, RegistryKeys.STATUS_EFFECT); | ||
|
||
public static final StatusEffect CATTIFY = new CattifyEffect(); | ||
public static void register() { | ||
EFFECTS.register(); | ||
} | ||
|
||
public static final RegistrySupplier<StatusEffect> CATTIFY = EFFECTS.register("cattify", CattifyEffect::new); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package cuteneko.catsplus.item; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.util.Rarity; | ||
|
||
public class CatSpiritItem extends Item { | ||
public CatSpiritItem(Settings settings) { | ||
super(settings); | ||
public CatSpiritItem() { | ||
super(new Item.Settings() | ||
.maxCount(1) | ||
.fireproof() | ||
.rarity(Rarity.EPIC)); | ||
} | ||
} |
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
Oops, something went wrong.