Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e70531beee | |||
08f755e8dc | |||
d3f32b7610 | |||
5276e53d87 | |||
e46baae9e8 |
src/main
java/cz/jzitnik/game
core/sound
SoundKey.java
registry
GrassDigSound.javaGrassMiningSound.javaGravelDigSound.javaMetalDigSound.javaMetalMiningSound.javaMetalWalkingSound.javaSandDigSound.javaSandMiningSound.javaSandWalkingSound.javaStoneDigSound.javaStoneMiningSound.javaStoneWalkingSound.javaWoodDigSound.javaWoodMiningSound.javaWoodSound.javaWoodWalkingSound.javaWoolDigSound.javaWoolMiningSound.javaWoolWalkingSound.java
entities/items/registry/blocks
blocks
CobblestoneBlock.javaFarmlandBlock.javaHaybaleBlock.javaLavaBlock.javaOakDoorBlock.javaOakLeavesBlock.javaOakLogBlock.javaOakPlanksBlock.javaObsidianBlock.javaSandBlock.javaStoneBlock.java
grassy
GrassBushBlock.javaOakSaplingBlock.javaWheatBlock.java
flowers
AlliumBlock.javaAzureBluetBlock.javaBlueOrchidBlock.javaCornflowerBlock.javaDandelionBlock.javaLilacBlock.javaLilyOfTheValleyBlock.javaOrangeTulipBlock.javaOxeyeDaisyBlock.javaPeonyBlock.javaPinkTulipBlock.javaPoppyBlock.javaRedTulipBlock.javaRoseBushBlock.javaSunflowerBlock.javaWhiteTulipBlock.java
ores
coal
diamond
gold
iron
wools
BlackWoolBlock.javaBlueWoolBlock.javaBrownWoolBlock.javaCyanWoolBlock.javaGrayWoolBlock.javaGreenWoolBlock.javaLightBlueWoolBlock.javaLightGrayWoolBlock.javaLimeWoolBlock.javaMagentaWoolBlock.javaOrangeWoolBlock.javaPinkWoolBlock.javaPurpleWoolBlock.javaRedWoolBlock.javaWhiteWoolBlock.javaYellowWoolBlock.java
work
sprites
resources/sounds
@ -3,12 +3,29 @@ package cz.jzitnik.game.core.sound;
|
|||||||
public enum SoundKey {
|
public enum SoundKey {
|
||||||
GRASS,
|
GRASS,
|
||||||
GRASS_WALKING,
|
GRASS_WALKING,
|
||||||
|
GRASS_MINING,
|
||||||
|
|
||||||
GRAVEL,
|
GRAVEL,
|
||||||
GRAVEL_WALKING,
|
GRAVEL_WALKING,
|
||||||
|
|
||||||
WOOD,
|
WOOD_DIG,
|
||||||
|
WOOD_WALKING,
|
||||||
|
WOOD_MINING,
|
||||||
|
|
||||||
HURT,
|
HURT,
|
||||||
HIT,
|
HIT,
|
||||||
|
|
||||||
|
SAND_DIG,
|
||||||
|
SAND_MINING,
|
||||||
|
SAND_WALKING,
|
||||||
|
|
||||||
|
STONE_DIG,
|
||||||
|
STONE_WALKING,
|
||||||
|
STONE_MINING,
|
||||||
|
|
||||||
|
WOOL_DIG,
|
||||||
|
|
||||||
|
METAL_DIG,
|
||||||
|
METAL_WALKING,
|
||||||
|
METAL_MINING,
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,5 @@ import cz.jzitnik.game.core.sound.SoundKey;
|
|||||||
"grass/grass3.ogg",
|
"grass/grass3.ogg",
|
||||||
"grass/grass4.ogg"
|
"grass/grass4.ogg"
|
||||||
})
|
})
|
||||||
public class GrassSound {
|
public class GrassDigSound {
|
||||||
}
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.GRASS_MINING, resourceLocation = {
|
||||||
|
"grass/mining1.ogg",
|
||||||
|
"grass/mining2.ogg",
|
||||||
|
"grass/mining3.ogg",
|
||||||
|
"grass/mining4.ogg",
|
||||||
|
"grass/mining5.ogg",
|
||||||
|
"grass/mining6.ogg"
|
||||||
|
})
|
||||||
|
public class GrassMiningSound {
|
||||||
|
}
|
@ -9,5 +9,5 @@ import cz.jzitnik.game.core.sound.SoundKey;
|
|||||||
"gravel/gravel3.ogg",
|
"gravel/gravel3.ogg",
|
||||||
"gravel/gravel4.ogg"
|
"gravel/gravel4.ogg"
|
||||||
})
|
})
|
||||||
public class GravelSound {
|
public class GravelDigSound {
|
||||||
}
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.METAL_DIG, resourceLocation = {
|
||||||
|
"metal/dig1.ogg",
|
||||||
|
"metal/dig2.ogg",
|
||||||
|
"metal/dig3.ogg",
|
||||||
|
"metal/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class MetalDigSound {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.METAL_MINING, resourceLocation = {
|
||||||
|
"metal/mining1.ogg",
|
||||||
|
"metal/mining2.ogg",
|
||||||
|
"metal/mining3.ogg",
|
||||||
|
"metal/mining4.ogg",
|
||||||
|
"metal/mining5.ogg",
|
||||||
|
"metal/mining6.ogg"
|
||||||
|
|
||||||
|
})
|
||||||
|
public class MetalMiningSound {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.METAL_WALKING, resourceLocation = {
|
||||||
|
"metal/step1.ogg",
|
||||||
|
"metal/step2.ogg",
|
||||||
|
"metal/step3.ogg",
|
||||||
|
"metal/step4.ogg",
|
||||||
|
"metal/step5.ogg",
|
||||||
|
"metal/step6.ogg"
|
||||||
|
})
|
||||||
|
public class MetalWalkingSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.SAND_DIG, resourceLocation = {
|
||||||
|
"sand/dig1.ogg",
|
||||||
|
"sand/dig2.ogg",
|
||||||
|
"sand/dig3.ogg",
|
||||||
|
"sand/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class SandDigSound {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.SAND_MINING, resourceLocation = {
|
||||||
|
"sand/mining1.ogg",
|
||||||
|
"sand/mining2.ogg",
|
||||||
|
"sand/mining3.ogg",
|
||||||
|
"sand/mining4.ogg",
|
||||||
|
"sand/mining5.ogg",
|
||||||
|
|
||||||
|
})
|
||||||
|
public class SandMiningSound {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.SAND_WALKING, resourceLocation = {
|
||||||
|
"sand/step1.ogg",
|
||||||
|
"sand/step2.ogg",
|
||||||
|
"sand/step3.ogg",
|
||||||
|
"sand/step4.ogg",
|
||||||
|
"sand/step5.ogg",
|
||||||
|
"sand/step6.ogg"
|
||||||
|
})
|
||||||
|
public class SandWalkingSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.STONE_DIG, resourceLocation = {
|
||||||
|
"stone/dig1.ogg",
|
||||||
|
"stone/dig2.ogg",
|
||||||
|
"stone/dig3.ogg",
|
||||||
|
"stone/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class StoneDigSound {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.STONE_MINING, resourceLocation = {
|
||||||
|
"stone/mine1.ogg",
|
||||||
|
"stone/mine2.ogg",
|
||||||
|
"stone/mine3.ogg",
|
||||||
|
"stone/mine4.ogg",
|
||||||
|
"stone/mine5.ogg",
|
||||||
|
"stone/mine6.ogg"
|
||||||
|
})
|
||||||
|
public class StoneMiningSound {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.STONE_WALKING, resourceLocation = {
|
||||||
|
"stone/step1.ogg",
|
||||||
|
"stone/step2.ogg",
|
||||||
|
"stone/step3.ogg",
|
||||||
|
"stone/step4.ogg",
|
||||||
|
"stone/step5.ogg",
|
||||||
|
"stone/step6.ogg"
|
||||||
|
})
|
||||||
|
public class StoneWalkingSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.WOOD_DIG, resourceLocation = {
|
||||||
|
"wood/dig1.ogg",
|
||||||
|
"wood/dig2.ogg",
|
||||||
|
"wood/dig3.ogg",
|
||||||
|
"wood/dig4.ogg",
|
||||||
|
})
|
||||||
|
public class WoodDigSound {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.WOOD_MINING, resourceLocation = {
|
||||||
|
"wood/mining1.ogg",
|
||||||
|
"wood/mining2.ogg",
|
||||||
|
"wood/mining3.ogg",
|
||||||
|
"wood/mining4.ogg",
|
||||||
|
"wood/mining5.ogg",
|
||||||
|
"wood/mining6.ogg"
|
||||||
|
|
||||||
|
})
|
||||||
|
public class WoodMiningSound {
|
||||||
|
}
|
@ -1,10 +0,0 @@
|
|||||||
package cz.jzitnik.game.core.sound.registry;
|
|
||||||
|
|
||||||
import cz.jzitnik.game.annotations.SoundRegistry;
|
|
||||||
import cz.jzitnik.game.core.sound.SoundKey;
|
|
||||||
|
|
||||||
@SoundRegistry(key = SoundKey.WOOD, resourceLocation = {
|
|
||||||
"wood/wood1.ogg",
|
|
||||||
})
|
|
||||||
public class WoodSound {
|
|
||||||
}
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.STONE_WALKING, resourceLocation = {
|
||||||
|
"wood/step1.ogg",
|
||||||
|
"wood/step2.ogg",
|
||||||
|
"wood/step3.ogg",
|
||||||
|
"wood/step4.ogg",
|
||||||
|
"wood/step5.ogg",
|
||||||
|
"wood/step6.ogg"
|
||||||
|
})
|
||||||
|
public class WoodWalkingSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.WOOL_DIG, resourceLocation = {
|
||||||
|
"wool/dig1.ogg",
|
||||||
|
"wool/dig2.ogg",
|
||||||
|
"wool/dig3.ogg",
|
||||||
|
"wool/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class WoolDigSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.WOOL_DIG, resourceLocation = {
|
||||||
|
"wool/dig1.ogg",
|
||||||
|
"wool/dig2.ogg",
|
||||||
|
"wool/dig3.ogg",
|
||||||
|
"wool/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class WoolMiningSound {
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package cz.jzitnik.game.core.sound.registry;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
|
|
||||||
|
@SoundRegistry(key = SoundKey.WOOL_DIG, resourceLocation = {
|
||||||
|
"wool/dig1.ogg",
|
||||||
|
"wool/dig2.ogg",
|
||||||
|
"wool/dig3.ogg",
|
||||||
|
"wool/dig4.ogg"
|
||||||
|
})
|
||||||
|
public class WoolWalkingSound {
|
||||||
|
}
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("cobblestone")
|
@BlockRegistry("cobblestone")
|
||||||
public class CobblestoneBlock extends Block {
|
public class CobblestoneBlock extends Block {
|
||||||
public CobblestoneBlock() {
|
public CobblestoneBlock() {
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.ResetDataOnMine;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.logic.services.farmland.FarmlandData;
|
import cz.jzitnik.game.logic.services.farmland.FarmlandData;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.GRAVEL)
|
||||||
|
@MineSound(SoundKey.GRAVEL)
|
||||||
|
@WalkSound(SoundKey.GRAVEL_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRAVEL_WALKING)
|
||||||
@ResetDataOnMine
|
@ResetDataOnMine
|
||||||
@BlockRegistry(value = "farmland", drops = "dirt")
|
@BlockRegistry(value = "farmland", drops = "dirt")
|
||||||
public class FarmlandBlock extends Block {
|
public class FarmlandBlock extends Block {
|
||||||
|
@ -1,15 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
|
||||||
import cz.jzitnik.game.annotations.ReduceFallDamage;
|
|
||||||
import cz.jzitnik.game.core.reducefalldamage.HaybaleFallDamageReducer;
|
import cz.jzitnik.game.core.reducefalldamage.HaybaleFallDamageReducer;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@BlockRegistry("haybale")
|
@BlockRegistry("haybale")
|
||||||
@ReduceFallDamage(HaybaleFallDamageReducer.class)
|
@ReduceFallDamage(HaybaleFallDamageReducer.class)
|
||||||
|
@ -7,6 +7,7 @@ import cz.jzitnik.game.entities.Block;
|
|||||||
import cz.jzitnik.game.logic.services.flowing.FlowingData;
|
import cz.jzitnik.game.logic.services.flowing.FlowingData;
|
||||||
import cz.jzitnik.game.sprites.Water;
|
import cz.jzitnik.game.sprites.Water;
|
||||||
|
|
||||||
|
|
||||||
@Burning
|
@Burning
|
||||||
@BlockRegistry(value = "lava", drops = "lava_bucket")
|
@BlockRegistry(value = "lava", drops = "lava_bucket")
|
||||||
public class LavaBlock extends Block {
|
public class LavaBlock extends Block {
|
||||||
|
@ -1,15 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolidNoHandler;
|
|
||||||
import cz.jzitnik.game.blocks.OakDoorData;
|
import cz.jzitnik.game.blocks.OakDoorData;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@PlaceOnSolidNoHandler
|
@PlaceOnSolidNoHandler
|
||||||
@BlockRegistry("oak_door")
|
@BlockRegistry("oak_door")
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@BlockRegistry("oak_leaves")
|
@BlockRegistry("oak_leaves")
|
||||||
public class OakLeavesBlock extends Block {
|
public class OakLeavesBlock extends Block {
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
|
||||||
import cz.jzitnik.game.annotations.MineSound;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceSound;
|
|
||||||
import cz.jzitnik.game.core.sound.SoundKey;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@MineSound(SoundKey.WOOD)
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
@PlaceSound(SoundKey.WOOD)
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@BlockRegistry("oak_log")
|
@BlockRegistry("oak_log")
|
||||||
public class OakLogBlock extends Block {
|
public class OakLogBlock extends Block {
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@BlockRegistry("oak_planks")
|
@BlockRegistry("oak_planks")
|
||||||
public class OakPlanksBlock extends Block {
|
public class OakPlanksBlock extends Block {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("obsidian")
|
@BlockRegistry("obsidian")
|
||||||
public class ObsidianBlock extends Block {
|
public class ObsidianBlock extends Block {
|
||||||
public ObsidianBlock() {
|
public ObsidianBlock() {
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.FallingBlock;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.SAND_DIG)
|
||||||
|
@PlaceSound(SoundKey.SAND_DIG)
|
||||||
|
@MiningSound(SoundKey.SAND_MINING)
|
||||||
|
@WalkSound(SoundKey.SAND_WALKING)
|
||||||
@FallingBlock
|
@FallingBlock
|
||||||
@BlockRegistry("sand")
|
@BlockRegistry("sand")
|
||||||
public class SandBlock extends Block {
|
public class SandBlock extends Block {
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry(value = "stone", drops = "cobblestone")
|
@BlockRegistry(value = "stone", drops = "cobblestone")
|
||||||
public class StoneBlock extends Block {
|
public class StoneBlock extends Block {
|
||||||
public StoneBlock() {
|
public StoneBlock() {
|
||||||
|
@ -1,20 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockDropPercentage;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
|
||||||
import cz.jzitnik.game.annotations.BreaksByPlace;
|
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.CustomDrop;
|
|
||||||
import cz.jzitnik.game.annotations.MineSound;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceSound;
|
|
||||||
import cz.jzitnik.game.core.sound.SoundKey;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
@MineSound(SoundKey.GRASS)
|
@MineSound(SoundKey.GRASS)
|
||||||
@PlaceSound(SoundKey.GRASS)
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.ResetDataOnMine;
|
|
||||||
import cz.jzitnik.game.annotations.Sapling;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.logic.services.saplings.SaplingData;
|
import cz.jzitnik.game.logic.services.saplings.SaplingData;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@Sapling
|
@Sapling
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@ResetDataOnMine
|
@ResetDataOnMine
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Farmable;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolidNoHandler;
|
|
||||||
import cz.jzitnik.game.annotations.ResetDataOnMine;
|
|
||||||
import cz.jzitnik.game.annotations.ResetSpriteStateOnMine;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.logic.services.farmable.FarmableData;
|
import cz.jzitnik.game.logic.services.farmable.FarmableData;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@Farmable("wheat")
|
@Farmable("wheat")
|
||||||
@PlaceOnSolidNoHandler
|
@PlaceOnSolidNoHandler
|
||||||
@ResetDataOnMine
|
@ResetDataOnMine
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
10
src/main/java/cz/jzitnik/game/entities/items/registry/blocks/grassy/flowers/OrangeTulipBlock.java
10
src/main/java/cz/jzitnik/game/entities/items/registry/blocks/grassy/flowers/OrangeTulipBlock.java
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.annotations.TwoblockBlock;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
package cz.jzitnik.game.entities.items.registry.blocks.grassy.flowers;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.BreakableByWater;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.annotations.BreaksFalling;
|
|
||||||
import cz.jzitnik.game.annotations.PlaceOnSolid;
|
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.GRASS)
|
||||||
|
@PlaceSound(SoundKey.GRASS)
|
||||||
|
@WalkSound(SoundKey.GRASS_WALKING)
|
||||||
|
@MiningSound(SoundKey.GRASS_MINING)
|
||||||
@PlaceOnSolid
|
@PlaceOnSolid
|
||||||
@BreakableByWater
|
@BreakableByWater
|
||||||
@BreaksFalling
|
@BreaksFalling
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.coal;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.coal;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@Flamable
|
@Flamable
|
||||||
@BlockRegistry("coal_block")
|
@BlockRegistry("coal_block")
|
||||||
public class CoalBlock extends Block {
|
public class CoalBlock extends Block {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.coal;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.coal;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("coal_ore")
|
@BlockRegistry("coal_ore")
|
||||||
public class CoalOreBlock extends Block {
|
public class CoalOreBlock extends Block {
|
||||||
public CoalOreBlock() {
|
public CoalOreBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.diamond;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.diamond;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@WalkSound(SoundKey.METAL_WALKING)
|
||||||
|
@MiningSound(SoundKey.METAL_MINING)
|
||||||
|
@PlaceSound(SoundKey.METAL_DIG)
|
||||||
|
@MineSound(SoundKey.METAL_DIG)
|
||||||
@BlockRegistry("diamond_block")
|
@BlockRegistry("diamond_block")
|
||||||
public class DiamondBlock extends Block {
|
public class DiamondBlock extends Block {
|
||||||
public DiamondBlock() {
|
public DiamondBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.diamond;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.diamond;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("diamond_ore")
|
@BlockRegistry("diamond_ore")
|
||||||
public class DiamondOreBlock extends Block {
|
public class DiamondOreBlock extends Block {
|
||||||
public DiamondOreBlock() {
|
public DiamondOreBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.gold;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.gold;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@WalkSound(SoundKey.METAL_WALKING)
|
||||||
|
@MiningSound(SoundKey.METAL_MINING)
|
||||||
|
@PlaceSound(SoundKey.METAL_DIG)
|
||||||
|
@MineSound(SoundKey.METAL_DIG)
|
||||||
@BlockRegistry("gold_block")
|
@BlockRegistry("gold_block")
|
||||||
public class GoldBlock extends Block {
|
public class GoldBlock extends Block {
|
||||||
public GoldBlock() {
|
public GoldBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.gold;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.gold;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("gold_ore")
|
@BlockRegistry("gold_ore")
|
||||||
public class GoldOreBlock extends Block {
|
public class GoldOreBlock extends Block {
|
||||||
public GoldOreBlock() {
|
public GoldOreBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.iron;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.iron;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@WalkSound(SoundKey.METAL_WALKING)
|
||||||
|
@MiningSound(SoundKey.METAL_MINING)
|
||||||
|
@PlaceSound(SoundKey.METAL_DIG)
|
||||||
|
@MineSound(SoundKey.METAL_DIG)
|
||||||
@BlockRegistry("iron_block")
|
@BlockRegistry("iron_block")
|
||||||
public class IronBlock extends Block {
|
public class IronBlock extends Block {
|
||||||
public IronBlock() {
|
public IronBlock() {
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.ores.iron;
|
package cz.jzitnik.game.entities.items.registry.blocks.ores.iron;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("iron_ore")
|
@BlockRegistry("iron_ore")
|
||||||
public class IronOreBlock extends Block {
|
public class IronOreBlock extends Block {
|
||||||
public IronOreBlock() {
|
public IronOreBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("black_wool")
|
@BlockRegistry("black_wool")
|
||||||
public class BlackWoolBlock extends Block {
|
public class BlackWoolBlock extends Block {
|
||||||
public BlackWoolBlock() {
|
public BlackWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("blue_wool")
|
@BlockRegistry("blue_wool")
|
||||||
public class BlueWoolBlock extends Block {
|
public class BlueWoolBlock extends Block {
|
||||||
public BlueWoolBlock() {
|
public BlueWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("brown_wool")
|
@BlockRegistry("brown_wool")
|
||||||
public class BrownWoolBlock extends Block {
|
public class BrownWoolBlock extends Block {
|
||||||
public BrownWoolBlock() {
|
public BrownWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("cyan_wool")
|
@BlockRegistry("cyan_wool")
|
||||||
public class CyanWoolBlock extends Block {
|
public class CyanWoolBlock extends Block {
|
||||||
public CyanWoolBlock() {
|
public CyanWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("gray_wool")
|
@BlockRegistry("gray_wool")
|
||||||
public class GrayWoolBlock extends Block {
|
public class GrayWoolBlock extends Block {
|
||||||
public GrayWoolBlock() {
|
public GrayWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("green_wool")
|
@BlockRegistry("green_wool")
|
||||||
public class GreenWoolBlock extends Block {
|
public class GreenWoolBlock extends Block {
|
||||||
public GreenWoolBlock() {
|
public GreenWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("light_blue_wool")
|
@BlockRegistry("light_blue_wool")
|
||||||
public class LightBlueWoolBlock extends Block {
|
public class LightBlueWoolBlock extends Block {
|
||||||
public LightBlueWoolBlock() {
|
public LightBlueWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("light_gray_wool")
|
@BlockRegistry("light_gray_wool")
|
||||||
public class LightGrayWoolBlock extends Block {
|
public class LightGrayWoolBlock extends Block {
|
||||||
public LightGrayWoolBlock() {
|
public LightGrayWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("lime_wool")
|
@BlockRegistry("lime_wool")
|
||||||
public class LimeWoolBlock extends Block {
|
public class LimeWoolBlock extends Block {
|
||||||
public LimeWoolBlock() {
|
public LimeWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("magenta_wool")
|
@BlockRegistry("magenta_wool")
|
||||||
public class MagentaWoolBlock extends Block {
|
public class MagentaWoolBlock extends Block {
|
||||||
public MagentaWoolBlock() {
|
public MagentaWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("orange_wool")
|
@BlockRegistry("orange_wool")
|
||||||
public class OrangeWoolBlock extends Block {
|
public class OrangeWoolBlock extends Block {
|
||||||
public OrangeWoolBlock() {
|
public OrangeWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("pink_wool")
|
@BlockRegistry("pink_wool")
|
||||||
public class PinkWoolBlock extends Block {
|
public class PinkWoolBlock extends Block {
|
||||||
public PinkWoolBlock() {
|
public PinkWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("purple_wool")
|
@BlockRegistry("purple_wool")
|
||||||
public class PurpleWoolBlock extends Block {
|
public class PurpleWoolBlock extends Block {
|
||||||
public PurpleWoolBlock() {
|
public PurpleWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("red_wool")
|
@BlockRegistry("red_wool")
|
||||||
public class RedWoolBlock extends Block {
|
public class RedWoolBlock extends Block {
|
||||||
public RedWoolBlock() {
|
public RedWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("white_wool")
|
@BlockRegistry("white_wool")
|
||||||
public class WhiteWoolBlock extends Block {
|
public class WhiteWoolBlock extends Block {
|
||||||
public WhiteWoolBlock() {
|
public WhiteWoolBlock() {
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
package cz.jzitnik.game.entities.items.registry.blocks.wools;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Wool;
|
import cz.jzitnik.game.sprites.Wool;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.WOOL_DIG)
|
||||||
|
@MineSound(SoundKey.WOOL_DIG)
|
||||||
|
@WalkSound(SoundKey.WOOL_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOL_DIG)
|
||||||
@BlockRegistry("yellow_wool")
|
@BlockRegistry("yellow_wool")
|
||||||
public class YellowWoolBlock extends Block {
|
public class YellowWoolBlock extends Block {
|
||||||
public YellowWoolBlock() {
|
public YellowWoolBlock() {
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.ReduceFallDamage;
|
|
||||||
import cz.jzitnik.game.core.reducefalldamage.BedFallDamageReducer;
|
import cz.jzitnik.game.core.reducefalldamage.BedFallDamageReducer;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.sprites.Bed;
|
import cz.jzitnik.game.sprites.Bed;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@ReduceFallDamage(BedFallDamageReducer.class)
|
@ReduceFallDamage(BedFallDamageReducer.class)
|
||||||
@BlockRegistry("bed")
|
@BlockRegistry("bed")
|
||||||
public class BedBlock extends Block {
|
public class BedBlock extends Block {
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
|
||||||
import cz.jzitnik.game.blocks.Chest;
|
import cz.jzitnik.game.blocks.Chest;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@Flamable(false)
|
@Flamable(false)
|
||||||
@BlockRegistry("chest")
|
@BlockRegistry("chest")
|
||||||
public class ChestBlock extends Block {
|
public class ChestBlock extends Block {
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.annotations.Flamable;
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@MineSound(SoundKey.WOOD_DIG)
|
||||||
|
@PlaceSound(SoundKey.WOOD_DIG)
|
||||||
|
@MiningSound(SoundKey.WOOD_MINING)
|
||||||
|
@WalkSound(SoundKey.WOOD_WALKING)
|
||||||
@Flamable(false)
|
@Flamable(false)
|
||||||
@BlockRegistry("crafting_table")
|
@BlockRegistry("crafting_table")
|
||||||
public class CraftingTableBlock extends Block {
|
public class CraftingTableBlock extends Block {
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
package cz.jzitnik.game.entities.items.registry.blocks.work;
|
||||||
|
|
||||||
import cz.jzitnik.game.SpriteLoader;
|
import cz.jzitnik.game.SpriteLoader;
|
||||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
import cz.jzitnik.game.annotations.*;
|
||||||
import cz.jzitnik.game.blocks.Furnace;
|
import cz.jzitnik.game.blocks.Furnace;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.game.entities.Block;
|
import cz.jzitnik.game.entities.Block;
|
||||||
import cz.jzitnik.game.entities.items.ItemType;
|
import cz.jzitnik.game.entities.items.ItemType;
|
||||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@PlaceSound(SoundKey.STONE_DIG)
|
||||||
|
@MineSound(SoundKey.STONE_DIG)
|
||||||
|
@WalkSound(SoundKey.STONE_WALKING)
|
||||||
|
@MiningSound(SoundKey.STONE_MINING)
|
||||||
@BlockRegistry("furnace")
|
@BlockRegistry("furnace")
|
||||||
public class FurnaceBlock extends Block {
|
public class FurnaceBlock extends Block {
|
||||||
public FurnaceBlock() {
|
public FurnaceBlock() {
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
package cz.jzitnik.game.sprites;
|
package cz.jzitnik.game.sprites;
|
||||||
|
|
||||||
|
import cz.jzitnik.game.annotations.MineSound;
|
||||||
|
import cz.jzitnik.game.annotations.MiningSound;
|
||||||
|
import cz.jzitnik.game.annotations.PlaceSound;
|
||||||
|
import cz.jzitnik.game.annotations.WalkSound;
|
||||||
|
import cz.jzitnik.game.core.sound.SoundKey;
|
||||||
import cz.jzitnik.tui.Sprite;
|
import cz.jzitnik.tui.Sprite;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
BIN
src/main/resources/sounds/grass/Grass_mining5.ogg
Normal file
BIN
src/main/resources/sounds/grass/Grass_mining5.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/grass/Grass_mining6.ogg
Normal file
BIN
src/main/resources/sounds/grass/Grass_mining6.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/grass/mining1.ogg
Normal file
BIN
src/main/resources/sounds/grass/mining1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/grass/mining2.ogg
Normal file
BIN
src/main/resources/sounds/grass/mining2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/grass/mining3.ogg
Normal file
BIN
src/main/resources/sounds/grass/mining3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/grass/mining4.ogg
Normal file
BIN
src/main/resources/sounds/grass/mining4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/dig1.ogg
Normal file
BIN
src/main/resources/sounds/metal/dig1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/dig2.ogg
Normal file
BIN
src/main/resources/sounds/metal/dig2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/dig3.ogg
Normal file
BIN
src/main/resources/sounds/metal/dig3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/dig4.ogg
Normal file
BIN
src/main/resources/sounds/metal/dig4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining1.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining2.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining3.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining4.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining5.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining5.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/mining6.ogg
Normal file
BIN
src/main/resources/sounds/metal/mining6.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/step1.ogg
Normal file
BIN
src/main/resources/sounds/metal/step1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/step2.ogg
Normal file
BIN
src/main/resources/sounds/metal/step2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/step3.ogg
Normal file
BIN
src/main/resources/sounds/metal/step3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/step4.ogg
Normal file
BIN
src/main/resources/sounds/metal/step4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/metal/step5.ogg
Normal file
BIN
src/main/resources/sounds/metal/step5.ogg
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user