Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
  • Loading branch information
ScottKillen committed Jan 8, 2015
2 parents 53be29b + 3e2cf5d commit 6a33906
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
[release]: https://github.com/MinecraftModArchive/KoreSample/releases/download/v1.0.0/KoreSample-1.7.10-1.0.0.jar
[changelog.md]: https://github.com/MinecraftModArchive/KoreSample/blob/develop/src/main/resources/CHANGELOG.md

Kore Sample provides a set of tools and base classes for other Minecraft mods the depend on it.
![KoreSample](https://raw.githubusercontent.com/MinecraftModArchive/KoreSample/develop/src/main/resources/assets/logo.png)

Kore Sample provides a set of tools and base classes for other Minecraft mods that depend on it.

[Contributing](#contributing)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.scottkillen.mod.koresample.tree.block.SaplingBlock;
import net.minecraft.world.gen.feature.WorldGenerator;

@SuppressWarnings("InterfaceNeverImplemented")
public interface DefinesSapling
{
void assignSaplingBlock(SaplingBlock block);
Expand All @@ -15,5 +16,8 @@ public interface DefinesSapling

String speciesName();

@Deprecated
WorldGenerator treeGenerator();

WorldGenerator saplingTreeGenerator();
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import com.scottkillen.mod.koresample.tree.block.LeavesBlock;
import com.scottkillen.mod.koresample.tree.block.LogBlock;
import com.scottkillen.mod.koresample.tree.block.SaplingBlock;
import net.minecraft.world.gen.feature.WorldGenerator;

@SuppressWarnings("InterfaceNeverImplemented")
public interface DefinesTree
{
LeavesBlock leavesBlock();
Expand All @@ -17,4 +19,8 @@ public interface DefinesTree
SaplingBlock saplingBlock();

int saplingSubBlockIndex();

WorldGenerator saplingTreeGenerator();

WorldGenerator worldTreeGenerator();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import static com.google.common.base.Preconditions.*;

@SuppressWarnings("AbstractClassNeverImplemented")
public abstract class SaplingBlock extends BlockSapling
{
public static final int CAPACITY = 8;
Expand Down Expand Up @@ -51,7 +52,7 @@ protected static String getUnwrappedUnlocalizedName(String unlocalizedName)

protected final List<DefinesSapling> subBlocks() { return Collections.unmodifiableList(subBlocks); }

public final ImmutableList<String> getSubBlockNames()
public final List<String> subBlockNames()
{
final List<String> names = Lists.newArrayListWithCapacity(subBlocks.size());
for (final DefinesSapling subBlock : subBlocks)
Expand All @@ -69,7 +70,7 @@ public final void func_149878_d(World world, int x, int y, int z, Random rand)
if (!TerrainGen.saplingGrowTree(world, rand, x, y, z)) return;

final int metadata = mask(world.getBlockMetadata(x, y, z));
final WorldGenerator treeGen = subBlocks.get(metadata).treeGenerator();
final WorldGenerator treeGen = subBlocks.get(metadata).saplingTreeGenerator();
world.setBlock(x, y, z, Blocks.air, 0, 4);
if (!treeGen.generate(world, rand, x, y, z)) world.setBlock(x, y, z, this, metadata, 4);
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## 1.1.0
- Added logo made by [CyanideX][cyanidex_twitter]
- Expand tree definition to include worldGen spawns
- Enhance epic awesomeness
[cyanidex_twitter]: https://twitter.com/electrodynamix

## 1.0.0
- Initial release
Binary file added src/main/resources/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "koresample",
"name": "Kore Sample",
"description": "A Minecraft mod that provides a set of tools and base classes for other Minecraft mods the depend on it.",
"description": "Kore Sample provides a set of tools and base classes for other Minecraft mods that depend on it.",
"version": "${mod_version}",
"mcversion": "${minecraft_version}",
"url": "",
Expand All @@ -11,7 +11,7 @@
"ScottKillen"
],
"credits": "",
"logoFile": "",
"logoFile": "assets/logo.png",
"screenshots": [
],
"parent":"",
Expand Down
4 changes: 2 additions & 2 deletions version/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue, 30 Dec 2014 22:06:42 -0500
#Wed, 07 Jan 2015 23:50:46 -0500
mcversion=1.7.10
forgeversion=10.13.2.1235
version_major=1
version_series=0
version_series=1
version_revision=0

0 comments on commit 6a33906

Please sign in to comment.