-
Notifications
You must be signed in to change notification settings - Fork 79
/
IBitBrush.java
45 lines (37 loc) · 934 Bytes
/
IBitBrush.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package mod.chiselsandbits.api;
import javax.annotation.Nullable;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemStack;
/**
* Do not implement, acquire from {@link IChiselAndBitsAPI}
*/
public interface IBitBrush
{
/**
* @return true when the brush is air...
*/
boolean isAir();
/**
* Gets the corresponding block state.
*
* @return IBlockState of brush, null for air.
*/
@Nullable
IBlockState getState();
/**
* Get the ItemStack for a bit, which is empty for air.
*
* VERY IMPORTANT: C&B lets you disable bits, if this happens the Item in
* this ItemStack WILL BE NULL, if you put this item in an inventory, drop
* it on the ground, or anything else.. CHECK THIS!!!!!
*
* @param count
* @return ItemStack, which is empty for air.
*/
ItemStack getItemStack(
int count );
/**
* @return the state id for the {@link IBlockState}
*/
int getStateID();
}