feat(blocks): Tall flowers
Co-authored-by: jull <sefljulie@gmail.com> Co-committed-by: jull <sefljulie@gmail.com>
This commit is contained in:
@ -48,6 +48,9 @@ public class SpriteLoader {
|
||||
AZURE_BLUET,
|
||||
LILY_OF_THE_VALLEY,
|
||||
LILAC,
|
||||
PEONY,
|
||||
ROSE_BUSH,
|
||||
SUNFLOWER,
|
||||
|
||||
// Ores
|
||||
COAL_ORE,
|
||||
@ -109,6 +112,9 @@ public class SpriteLoader {
|
||||
|
||||
// Tall Flowers
|
||||
ITEM_LILAC,
|
||||
ITEM_PEONY,
|
||||
ITEM_ROSE_BUSH,
|
||||
ITEM_SUNFLOWER,
|
||||
|
||||
// Ore Items
|
||||
ITEM_COAL_ORE,
|
||||
@ -247,6 +253,9 @@ public class SpriteLoader {
|
||||
SPRITES_MAP.put(SPRITES.OXEYE_DAISY, new SimpleSprite("oxeye_daisy.ans"));
|
||||
SPRITES_MAP.put(SPRITES.AZURE_BLUET, new SimpleSprite("azure_bluet.ans"));
|
||||
SPRITES_MAP.put(SPRITES.LILAC, new TwoBlockSprite("lilac_top.ans", "lilac_bottom.ans"));
|
||||
SPRITES_MAP.put(SPRITES.PEONY, new TwoBlockSprite("peony_top.ans", "peony_bottom.ans"));
|
||||
SPRITES_MAP.put(SPRITES.ROSE_BUSH, new TwoBlockSprite("rose_bush_top.ans", "rose_bush_bottom.ans"));
|
||||
SPRITES_MAP.put(SPRITES.SUNFLOWER, new TwoBlockSprite("sunflower_top.ans", "sunflower_bottom.ans"));
|
||||
|
||||
// Grass
|
||||
SPRITES_MAP.put(SPRITES.GRASS_BUSH, new SimpleSprite("grass_bush.ans"));
|
||||
@ -295,6 +304,9 @@ public class SpriteLoader {
|
||||
|
||||
// Tall flowers
|
||||
SPRITES_MAP.put(SPRITES.ITEM_LILAC, new SimpleSprite("items/lilac.ans"));
|
||||
SPRITES_MAP.put(SPRITES.ITEM_PEONY, new SimpleSprite("items/peony.ans"));
|
||||
SPRITES_MAP.put(SPRITES.ITEM_ROSE_BUSH, new SimpleSprite("items/rose_bush.ans"));
|
||||
SPRITES_MAP.put(SPRITES.ITEM_SUNFLOWER, new SimpleSprite("items/sunflower.ans"));
|
||||
|
||||
// Ore Items
|
||||
SPRITES_MAP.put(SPRITES.ITEM_COAL_ORE, new SimpleSprite("items/coal_ore.ans"));
|
||||
|
@ -0,0 +1,14 @@
|
||||
package cz.jzitnik.game.crafting.recipes.dyes;
|
||||
|
||||
import cz.jzitnik.game.annotations.CraftingRecipeRegistry;
|
||||
|
||||
@CraftingRecipeRegistry(
|
||||
recipe = {
|
||||
"lilac", "_", "_",
|
||||
"_", "_", "_",
|
||||
"_", "_", "_"
|
||||
},
|
||||
result = "magenta_dye",
|
||||
amount = 2
|
||||
)
|
||||
public class MagentaDye2Recipe {}
|
@ -0,0 +1,14 @@
|
||||
package cz.jzitnik.game.crafting.recipes.dyes;
|
||||
|
||||
import cz.jzitnik.game.annotations.CraftingRecipeRegistry;
|
||||
|
||||
@CraftingRecipeRegistry(
|
||||
recipe = {
|
||||
"peony", "_", "_",
|
||||
"_", "_", "_",
|
||||
"_", "_", "_"
|
||||
},
|
||||
result = "pink_dye",
|
||||
amount = 2
|
||||
)
|
||||
public class PinkDye2Recipe {}
|
@ -0,0 +1,14 @@
|
||||
package cz.jzitnik.game.crafting.recipes.dyes;
|
||||
|
||||
import cz.jzitnik.game.annotations.CraftingRecipeRegistry;
|
||||
|
||||
@CraftingRecipeRegistry(
|
||||
recipe = {
|
||||
"rose_bush", "_", "_",
|
||||
"_", "_", "_",
|
||||
"_", "_", "_"
|
||||
},
|
||||
result = "red_dye",
|
||||
amount = 2
|
||||
)
|
||||
public class RedDye3Recipe {}
|
@ -0,0 +1,14 @@
|
||||
package cz.jzitnik.game.crafting.recipes.dyes;
|
||||
|
||||
import cz.jzitnik.game.annotations.CraftingRecipeRegistry;
|
||||
|
||||
@CraftingRecipeRegistry(
|
||||
recipe = {
|
||||
"sunflower", "_", "_",
|
||||
"_", "_", "_",
|
||||
"_", "_", "_"
|
||||
},
|
||||
result = "yellow_dye",
|
||||
amount = 2
|
||||
)
|
||||
public class YellowDye2Recipe {}
|
@ -0,0 +1,21 @@
|
||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
|
||||
@PlaceOnSolid
|
||||
@BreakableByWater
|
||||
@BreaksFalling
|
||||
@TwoblockBlock
|
||||
@BlockRegistry(value = "peony")
|
||||
public class PeonyBlock extends Block {
|
||||
public PeonyBlock() {
|
||||
super("peony", SpriteLoader.SPRITES.PEONY, 0);
|
||||
setGhost(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
|
||||
@PlaceOnSolid
|
||||
@BreakableByWater
|
||||
@BreaksFalling
|
||||
@TwoblockBlock
|
||||
@BlockRegistry(value = "rose_bush")
|
||||
public class RoseBushBlock extends Block {
|
||||
public RoseBushBlock() {
|
||||
super("rose_bush", SpriteLoader.SPRITES.ROSE_BUSH, 0);
|
||||
setGhost(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
|
||||
@PlaceOnSolid
|
||||
@BreakableByWater
|
||||
@BreaksFalling
|
||||
@TwoblockBlock
|
||||
@BlockRegistry(value = "sunflower")
|
||||
public class SunflowerBlock extends Block {
|
||||
public SunflowerBlock() {
|
||||
super("sunflower", SpriteLoader.SPRITES.SUNFLOWER, 0);
|
||||
setGhost(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cz.jzitnik.game.entities.items.registry.items.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.ItemRegistry;
|
||||
import cz.jzitnik.game.entities.items.Item;
|
||||
import cz.jzitnik.game.entities.items.ItemType;
|
||||
|
||||
@ItemRegistry("peony")
|
||||
public class PeonyItem extends Item {
|
||||
public PeonyItem() {
|
||||
super("peony", "Peony", ItemType.BLOCK, SpriteLoader.SPRITES.ITEM_PEONY);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cz.jzitnik.game.entities.items.registry.items.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.ItemRegistry;
|
||||
import cz.jzitnik.game.entities.items.Item;
|
||||
import cz.jzitnik.game.entities.items.ItemType;
|
||||
|
||||
@ItemRegistry("rose_bush")
|
||||
public class RoseBushItem extends Item {
|
||||
public RoseBushItem() {
|
||||
super("rose_bush", "Rose bush", ItemType.BLOCK, SpriteLoader.SPRITES.ITEM_ROSE_BUSH);
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cz.jzitnik.game.entities.items.registry.items.grassy.flowers;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.ItemRegistry;
|
||||
import cz.jzitnik.game.entities.items.Item;
|
||||
import cz.jzitnik.game.entities.items.ItemType;
|
||||
|
||||
@ItemRegistry("sunflower")
|
||||
public class SunflowerItem extends Item {
|
||||
public SunflowerItem() {
|
||||
super("sunflower", "Sunflower", ItemType.BLOCK, SpriteLoader.SPRITES.ITEM_SUNFLOWER);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user