-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3cd30f
commit 5c71396
Showing
65 changed files
with
949 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
sudo: required | ||
dist: trusty | ||
|
||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
|
||
cach: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
before_install: chmod +x gradlew | ||
install: | ||
- ./gradlew setupCIWorkspace -S | ||
script: | ||
- ./gradlew build | ||
|
||
notification: | ||
email: | ||
recipients: | ||
- vampirism@paube.de | ||
on_success: never | ||
on_failure: change |
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 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
2 changes: 1 addition & 1 deletion
2
...apen/vampirewerewolf/util/VReference.java → ...lapen/vampirewerewolf/api/VReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/api/java/de/teamlapen/vampirewerewolf/api/VampireWerewolfAPI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package de.teamlapen.vampirewerewolf.api; | ||
|
||
public class VampireWerewolfAPI { | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...teamlapen/vampirewerewolf/api/entities/player/werewolf/actions/DefaultWerewolfAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/api/java/de/teamlapen/vampirewerewolf/api/items/ISilverFactionSlayerItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.teamlapen.vampirewerewolf.api.items; | ||
|
||
import de.teamlapen.vampirewerewolf.api.VReference; | ||
import de.teamlapen.vampirism.api.entity.factions.IFaction; | ||
import de.teamlapen.vampirism.api.items.IFactionSlayerItem; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public interface ISilverFactionSlayerItem extends IFactionSlayerItem { | ||
|
||
public default float getDamageMultiplierForFaction(ItemStack stack) { | ||
return 1.5F; | ||
} | ||
|
||
@Override | ||
public default IFaction getSlayedFaction() { | ||
return VReference.WEREWOLF_FACTION; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,5 +13,4 @@ public BlockSilverOre() { | |
this.setSoundType(SoundType.STONE); | ||
this.setHarvestLevel("pickaxe", 2); | ||
} | ||
|
||
} |
105 changes: 105 additions & 0 deletions
105
src/main/java/de/teamlapen/vampirewerewolf/blocks/WerewolfFlower.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package de.teamlapen.vampirewerewolf.blocks; | ||
|
||
import de.teamlapen.lib.lib.item.ItemMetaBlock; | ||
import de.teamlapen.vampirewerewolf.VampireWerewolfMod; | ||
import de.teamlapen.vampirewerewolf.util.REFERENCE; | ||
import net.minecraft.block.BlockBush; | ||
import net.minecraft.block.properties.PropertyEnum; | ||
import net.minecraft.block.state.BlockStateContainer; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.IStringSerializable; | ||
import net.minecraft.util.NonNullList; | ||
|
||
public class WerewolfFlower extends BlockBush implements ItemMetaBlock.IMetaItemName { | ||
public final static PropertyEnum<EnumFlowerType> TYPE = PropertyEnum.create("type", EnumFlowerType.class); | ||
private final static String regName = "werewolf_flower"; | ||
|
||
public WerewolfFlower() { | ||
this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, EnumFlowerType.WOLFBANE)); | ||
setCreativeTab(VampireWerewolfMod.creativeTab); | ||
setRegistryName(REFERENCE.MODID, regName); | ||
this.setUnlocalizedName(REFERENCE.MODID); | ||
} | ||
|
||
@Override | ||
public int damageDropped(IBlockState state) { | ||
return state.getValue(TYPE).getMeta(); | ||
} | ||
|
||
@Override | ||
public String getItemstackName(ItemStack stack) { | ||
return EnumFlowerType.getType(stack.getItemDamage()).getUnlocalizedName(); | ||
} | ||
|
||
@Override | ||
public int getMetaFromState(IBlockState state) { | ||
return state.getValue(TYPE).getMeta(); | ||
} | ||
|
||
public String getRegisteredName() { | ||
return regName; | ||
} | ||
|
||
@Override | ||
public IBlockState getStateFromMeta(int meta) { | ||
return this.getDefaultState().withProperty(TYPE, EnumFlowerType.getType(meta)); | ||
} | ||
|
||
@Override | ||
public void getSubBlocks(CreativeTabs tab, NonNullList<ItemStack> list) { | ||
for (EnumFlowerType type : EnumFlowerType.values()) { | ||
list.add(new ItemStack(this, 1, type.getMeta())); | ||
} | ||
} | ||
|
||
@Override | ||
protected BlockStateContainer createBlockState() { | ||
return new BlockStateContainer(this, TYPE); | ||
} | ||
|
||
public enum EnumFlowerType implements IStringSerializable { | ||
|
||
WOLFBANE(0, "werewolf_wolfsbane", "werewolf_wolfsbane"); | ||
private static final EnumFlowerType[] TYPE_FOR_META = new EnumFlowerType[values().length]; | ||
|
||
static { | ||
for (final EnumFlowerType type : values()) { | ||
TYPE_FOR_META[type.getMeta()] = type; | ||
} | ||
} | ||
|
||
public static EnumFlowerType getType(int meta) { | ||
if (meta >= TYPE_FOR_META.length) { | ||
return TYPE_FOR_META[0]; | ||
} | ||
return TYPE_FOR_META[meta]; | ||
} | ||
|
||
private final int meta; | ||
private final String name; | ||
private final String unlocalizedName; | ||
|
||
EnumFlowerType(int meta, String name, String unlocalizedName) { | ||
this.meta = meta; | ||
this.name = name; | ||
this.unlocalizedName = unlocalizedName; | ||
} | ||
|
||
public int getMeta() { | ||
return meta; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getUnlocalizedName() { | ||
return unlocalizedName; | ||
} | ||
|
||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/de/teamlapen/vampirewerewolf/client/core/ClientEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package de.teamlapen.vampirewerewolf.client.core; | ||
|
||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
||
@SideOnly(Side.CLIENT) | ||
public class ClientEventHandler { | ||
|
||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/java/de/teamlapen/vampirewerewolf/client/core/ModEntitiesRender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Oops, something went wrong.