Skip to content

Commit 4f43409

Browse files
committed
Merge branch '1.10.x'
2 parents 51716eb + 0c5ea6d commit 4f43409

8 files changed

Lines changed: 46 additions & 176 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Minecraft Mod Cooperation API [![Join the chat at https://gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI](https://badges.gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI.svg)](https://gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
22
本APIは食べ物や色といった各modで内容が共通しやすいInterfaceやEnumerationを定義し、modderに提供する事で、mod間の連携を容易にすることを目的とします。
3-
現在は、Minecraft1.7.10のMinecraftForge10.13.4.1558以上の環境で動作させることを想定してコーディングされています
3+
現在は、Minecraft1.9のMinecraftForge12.16.0.1766以上の環境で動作させることを想定してコーディングされています
44

55
## License
66
LICENSEという名前のファイルを見てください。
@@ -12,7 +12,7 @@ Licenseはこのリポジトリに対してAdmin以上の権限を持ってい
1212

1313
# Minecraft Mod Cooperation API [![Join the chat at https://gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI](https://badges.gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI.svg)](https://gitter.im/MinecraftModderJapan/MinecraftModCooperationAPI?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1414
This API will be used to make your mods to work with other mods easily.
15-
Now work on Minecraft1.7.10 and upper MinecraftForge10.13.4.1558.
15+
Now work on Minecraft1.9 and upper MinecraftForge12.16.0.1766.
1616

1717
## License
1818
See the LICENSE file.

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/ModCooperationAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package jp.MinecraftModderJapan.ModCooperationAPI;
22

3-
import cpw.mods.fml.common.Mod;
3+
import net.minecraftforge.fml.common.Mod;
44

55
@Mod(modid = ModCooperationAPI.MOD_ID)
66
public class ModCooperationAPI{

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/api/EnumDyeColor.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/api/block/ICrop.java

Lines changed: 37 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import net.minecraft.entity.player.EntityPlayer;
44
import net.minecraft.item.ItemStack;
5+
import net.minecraft.util.math.BlockPos;
56
import net.minecraft.world.World;
67

78
import java.util.Random;
@@ -12,7 +13,7 @@
1213
* Crop interface.
1314
*
1415
* @author CrafterKina
15-
* @version 1.0
16+
* @version 1.1
1617
* @since 1.0
1718
*/
1819
public interface ICrop{
@@ -26,15 +27,13 @@ public interface ICrop{
2627
* Nonnull
2728
* <p/>
2829
* the World
29-
* @param x
30-
* X
31-
* @param y
32-
* Y
33-
* @param z
34-
* Z
30+
* @param pos
31+
* Nonnull
32+
* <p/>
33+
* position
3534
* @since 1.0
3635
*/
37-
boolean isMature(World world, int x, int y, int z);
36+
boolean isMature(World world, BlockPos pos);
3837

3938
/**
4039
* 作物から何らかの収穫が得られるときは、trueを返します。
@@ -45,15 +44,13 @@ public interface ICrop{
4544
* Nonnull
4645
* <p/>
4746
* the World
48-
* @param x
49-
* X
50-
* @param y
51-
* Y
52-
* @param z
53-
* Z
47+
* @param pos
48+
* Nonnull
49+
* <p/>
50+
* position
5451
* @since 1.0
5552
*/
56-
boolean isHarvestable(World world, int x, int y, int z);
53+
boolean isHarvestable(World world, BlockPos pos);
5754

5855
/**
5956
* 収穫者がこの作物を収穫できるか判定します。
@@ -68,15 +65,13 @@ public interface ICrop{
6865
* Nonnull
6966
* <p/>
7067
* the World
71-
* @param x
72-
* X
73-
* @param y
74-
* Y
75-
* @param z
76-
* Z
68+
* @param pos
69+
* Nonnull
70+
* <p/>
71+
* position
7772
* @since 1.0
7873
*/
79-
boolean canHarvestCrop(EntityPlayer player, World world, int x, int y, int z);
74+
boolean canHarvestCrop(EntityPlayer player, World world, BlockPos pos);
8075

8176
/**
8277
* 成長段階を一つ進めます。 それ以上成長できない場合、falseを返し何も行いません。
@@ -87,15 +82,13 @@ public interface ICrop{
8782
* Nonnull
8883
* <p/>
8984
* the World
90-
* @param x
91-
* X
92-
* @param y
93-
* Y
94-
* @param z
95-
* Z
85+
* @param pos
86+
* Nonnull
87+
* <p/>
88+
* position
9689
* @since 1.0
9790
*/
98-
boolean grow(World world, int x, int y, int z);
91+
boolean grow(World world, BlockPos pos);
9992

10093
/**
10194
* 作物の種を返します。
@@ -106,15 +99,13 @@ public interface ICrop{
10699
* Nonnull
107100
* <p/>
108101
* the World
109-
* @param x
110-
* X
111-
* @param y
112-
* Y
113-
* @param z
114-
* Z
102+
* @param pos
103+
* Nonnull
104+
* <p/>
105+
* position
115106
* @since 1.0
116107
*/
117-
ItemStack getSeed(World world, int x, int y, int z);
108+
ItemStack getSeed(World world, BlockPos pos);
118109

119110
/**
120111
* 期待されるすべての収穫物を返します。
@@ -125,15 +116,13 @@ public interface ICrop{
125116
* Nonnull
126117
* <p/>
127118
* the World
128-
* @param x
129-
* X
130-
* @param y
131-
* Y
132-
* @param z
133-
* Z
119+
* @param pos
120+
* Nonnull
121+
* <p/>
122+
* position
134123
* @since 1.0
135124
*/
136-
ItemStack[] getAllExceptedResult(World world, int x, int y, int z);
125+
ItemStack[] getAllExceptedResult(World world, BlockPos pos);
137126

138127
/**
139128
* 収穫結果を返します。ドロップ処理等は行いません。
@@ -152,14 +141,12 @@ public interface ICrop{
152141
* Nonnull
153142
* <p/>
154143
* the World
155-
* @param x
156-
* X
157-
* @param y
158-
* Y
159-
* @param z
160-
* Z
144+
* @param pos
145+
* Nonnull
146+
* <p/>
147+
* position
161148
* @since 1.0
162149
*/
163-
ItemStack[] harvest(EntityPlayer player, Random random, World world, int x, int y, int z);
150+
ItemStack[] harvest(EntityPlayer player, Random random, World world, BlockPos pos);
164151

165152
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@API(apiVersion = "1.0", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api.block")
1+
@API(apiVersion = "1.1", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api.block")
22
package jp.MinecraftModderJapan.ModCooperationAPI.api.block;
33

4-
import cpw.mods.fml.common.API;
4+
import net.minecraftforge.fml.common.API;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@API(apiVersion = "1.0", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api.entity")
22
package jp.MinecraftModderJapan.ModCooperationAPI.api.entity;
33

4-
import cpw.mods.fml.common.API;
4+
import net.minecraftforge.fml.common.API;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@API(apiVersion = "1.0", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api.item")
22
package jp.MinecraftModderJapan.ModCooperationAPI.api.item;
33

4-
import cpw.mods.fml.common.API;
4+
import net.minecraftforge.fml.common.API;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@API(apiVersion = "1.0", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api")
1+
@API(apiVersion = "1.1", owner = "jp.MinecraftModderJapan.ModCooperationAPI", provides = "jp.MinecraftModderJapan.ModCooperationAPI.api")
22
package jp.MinecraftModderJapan.ModCooperationAPI.api;
33

4-
import cpw.mods.fml.common.API;
4+
import net.minecraftforge.fml.common.API;

0 commit comments

Comments
 (0)