Skip to content

Commit ef4f86a

Browse files
committed
Update docs
1 parent 9ff6eac commit ef4f86a

7 files changed

Lines changed: 58 additions & 100 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* 着色可能Blockのインターフェースです。
5-
* <p/>
5+
* <br>
66
* Colorable Block Interface.
77
*
88
* @author CrafterKina

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

Lines changed: 18 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
import net.minecraft.util.math.BlockPos;
66
import net.minecraft.world.World;
77

8+
import javax.annotation.Nonnull;
89
import java.util.Random;
910

1011
/**
1112
* 作物のインターフェースです。
12-
* <p/>
13+
* <br>
1314
* Crop interface.
1415
*
1516
* @author CrafterKina
@@ -19,134 +20,102 @@
1920
public interface ICrop{
2021
/**
2122
* 作物が完熟している場合、trueを返します。 他の成長段階で収穫が異なっても、完熟した段階でのみtrueを返します。
22-
* <p/>
23+
* <br>
2324
* When the crop has grew completely, return true. Even If harvest-result changes by growth stage, only true in
2425
* final stage.
2526
*
2627
* @param world
27-
* Nonnull
28-
* <p/>
2928
* the World
3029
* @param pos
31-
* Nonnull
32-
* <p/>
3330
* position
3431
* @since 1.0
3532
*/
36-
boolean isMature(World world, BlockPos pos);
33+
boolean isMature(@Nonnull World world, @Nonnull BlockPos pos);
3734

3835
/**
3936
* 作物から何らかの収穫が得られるときは、trueを返します。
40-
* <p/>
37+
* <br>
4138
* Whenever this crop drops any harvest-results, return true.
4239
*
4340
* @param world
44-
* Nonnull
45-
* <p/>
4641
* the World
4742
* @param pos
48-
* Nonnull
49-
* <p/>
5043
* position
5144
* @since 1.0
5245
*/
53-
boolean isHarvestable(World world, BlockPos pos);
46+
boolean isHarvestable(@Nonnull World world, @Nonnull BlockPos pos);
5447

5548
/**
5649
* 収穫者がこの作物を収穫できるか判定します。
57-
* <p/>
50+
* <br>
5851
* The harvester can harvest.
5952
*
6053
* @param player
61-
* Nonnull
62-
* <p/>
6354
* the Harvester
6455
* @param world
65-
* Nonnull
66-
* <p/>
6756
* the World
6857
* @param pos
69-
* Nonnull
70-
* <p/>
7158
* position
7259
* @since 1.0
7360
*/
74-
boolean canHarvestCrop(EntityPlayer player, World world, BlockPos pos);
61+
boolean canHarvestCrop(@Nonnull EntityPlayer player, @Nonnull World world, @Nonnull BlockPos pos);
7562

7663
/**
7764
* 成長段階を一つ進めます。 それ以上成長できない場合、falseを返し何も行いません。
78-
* <p/>
65+
* <br>
7966
* Force raise up the growth-stage. If this crop can't grow more, return false and do not anything.
8067
*
8168
* @param world
82-
* Nonnull
83-
* <p/>
8469
* the World
8570
* @param pos
86-
* Nonnull
87-
* <p/>
8871
* position
8972
* @since 1.0
9073
*/
91-
boolean grow(World world, BlockPos pos);
74+
boolean grow(@Nonnull World world, @Nonnull BlockPos pos);
9275

9376
/**
9477
* 作物の種を返します。
95-
* <p/>
78+
* <br>
9679
* Seed of Crop.
9780
*
9881
* @param world
99-
* Nonnull
100-
* <p/>
10182
* the World
10283
* @param pos
103-
* Nonnull
104-
* <p/>
10584
* position
10685
* @since 1.0
10786
*/
108-
ItemStack getSeed(World world, BlockPos pos);
87+
ItemStack getSeed(@Nonnull World world, @Nonnull BlockPos pos);
10988

11089
/**
11190
* 期待されるすべての収穫物を返します。
112-
* <p/>
91+
* <br>
11392
* All excepted harvest-results.
11493
*
11594
* @param world
116-
* Nonnull
117-
* <p/>
11895
* the World
11996
* @param pos
120-
* Nonnull
121-
* <p/>
12297
* position
12398
* @since 1.0
12499
*/
125-
ItemStack[] getAllExceptedResult(World world, BlockPos pos);
100+
@Nonnull
101+
ItemStack[] getAllExceptedResult(@Nonnull World world, @Nonnull BlockPos pos);
126102

127103
/**
128104
* 収穫結果を返します。ドロップ処理等は行いません。
129-
* <p/>
105+
* <br>
130106
* Return harvest-result items and do not any more.
131107
*
132108
* @param player
133-
* Nonnull
134-
* <p/>
135109
* the Harvester
136110
* @param random
137-
* Nonnull
138-
* <p/>
139111
* Randomize
140112
* @param world
141-
* Nonnull
142-
* <p/>
143113
* the World
144114
* @param pos
145-
* Nonnull
146-
* <p/>
147115
* position
148116
* @since 1.0
149117
*/
150-
ItemStack[] harvest(EntityPlayer player, Random random, World world, BlockPos pos);
118+
@Nonnull
119+
ItemStack[] harvest(@Nonnull EntityPlayer player, @Nonnull Random random, @Nonnull World world, @Nonnull BlockPos pos);
151120

152121
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* 鉱石ブロックのインターフェースです。
5-
* <p/>
5+
* <br>
66
* Ore Block Interface.
77
*
88
* @author CrafterKina

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/api/entity/IBreedable.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import net.minecraft.item.ItemStack;
44

5+
import javax.annotation.Nonnull;
6+
57
/**
68
* 繁殖可能なEntityのインターフェース
7-
* <p/>
9+
* <br>
810
* Breedable mobs interface.
911
*
1012
* @author CrafterKina
@@ -14,11 +16,9 @@
1416
public interface IBreedable{
1517
/**
1618
* @param stack
17-
* CheckForNull
18-
* <p/>
1919
* the Item
2020
* @see net.minecraft.entity.passive.EntityAnimal#isBreedingItem(ItemStack) it is same.
2121
* @since 1.0
2222
*/
23-
boolean canBreedBy(ItemStack stack);
23+
boolean canBreedBy(@Nonnull ItemStack stack);
2424
}

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/api/entity/IRidden.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import net.minecraft.entity.Entity;
44

5+
import javax.annotation.Nonnull;
6+
57
/**
68
* 乗れるEntityのインターフェース。
79
* <p/>
@@ -14,39 +16,36 @@
1416
public interface IRidden{
1517
/**
1618
* 乗る。
17-
* <p/>
19+
* <br>
1820
* ride.
1921
*
2022
* @param entity
21-
* Nonnull
22-
* <p/>
2323
* to ride
2424
* @return success
2525
* @since 1.0
2626
*/
27-
boolean ride(Entity entity);
27+
boolean ride(@Nonnull Entity entity);
2828

2929

3030
/**
3131
* 降ろす。
32-
* <p/>
32+
* <br>
3333
* unload.
3434
*
3535
* @param entity
36-
* Nonnull
37-
* <p/>
3836
* to unload
3937
* @return success
4038
* @since 1.0
4139
*/
42-
boolean unload(Entity entity);
40+
boolean unload(@Nonnull Entity entity);
4341

4442
/**
4543
* 乗っているすべてのEntityを返す。
46-
* <p/>
44+
* <br>
4745
* All the riding on this.
4846
*
4947
* @since 1.0
5048
*/
49+
@Nonnull
5150
Entity[] getRiddenBy();
5251
}

src/main/java/jp/MinecraftModderJapan/ModCooperationAPI/api/item/IBook.java

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import net.minecraft.entity.player.EntityPlayer;
44
import net.minecraft.item.ItemStack;
55

6+
import javax.annotation.Nonnull;
7+
68
/**
79
* 本のためのインターフェイス。
8-
* <p/>
10+
* <br>
911
* Interface for the book.
1012
*
1113
* @author Shift02
@@ -16,51 +18,43 @@ public interface IBook{
1618

1719
/**
1820
* GUIを持っているか。
19-
* <p/>
21+
* <br>
2022
* the book has gui.
2123
*
2224
* @param book
23-
* Nonnull
24-
* <p/>
2525
* Instance of the book stack.
2626
* @return 持っている場合はtrue If the book has, "true"
2727
* @since 1.0
2828
*/
29-
boolean hasGUI(ItemStack book);
29+
boolean hasGUI(@Nonnull ItemStack book);
3030

3131
/**
3232
* GUIを開けることができるか。
33-
* <p/>
33+
* <br>
3434
* player can open gui.
3535
*
3636
* @param player
37-
* Nonnull
38-
* <p/>
3937
* the Player
4038
* @param book
41-
* Nonnull
42-
* <p/>
4339
* Instance of the book stack.
4440
* @return 開くことができるならtrue。 If player can open gui, true.
4541
* @since 1.0
4642
*/
47-
boolean canOpenGUI(EntityPlayer player, ItemStack book);
43+
boolean canOpenGUI(@Nonnull EntityPlayer player, @Nonnull ItemStack book);
4844

4945
/**
5046
* GUIを開く。
51-
* <p/>
47+
* <br>
5248
* Open the GUI.
5349
*
5450
* @param player
55-
* Nonnull
56-
* <p/>
5751
* the Player
5852
* @param book
59-
* Nonnull
60-
* <p/>
6153
* Instance of the book stack.
54+
* @return opened book stack
6255
* @since 1.0
6356
*/
64-
ItemStack openGUI(EntityPlayer player, ItemStack book);
57+
@Nonnull
58+
ItemStack openGUI(@Nonnull EntityPlayer player, @Nonnull ItemStack book);
6559

6660
}

0 commit comments

Comments
 (0)