public class AllowedBlock
extends java.lang.Object
| Constructor and Description |
|---|
AllowedBlock(net.minecraft.block.Block block)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
net.minecraft.block.Block |
getBlock() |
int |
getExactOccurences() |
int |
getMaxOccurences() |
AllowedBlock |
setExactOccurences(int exactOccurences)
Set the exact required occurences.
|
AllowedBlock |
setMaxOccurences(int maxOccurences)
Set the maximum occurences.
|
public AllowedBlock(net.minecraft.block.Block block)
block - The allowed block.public AllowedBlock setMaxOccurences(int maxOccurences)
maxOccurences - The maximum amount of times this blockState should occur.
A negative value here will ignore this condition.public AllowedBlock setExactOccurences(int exactOccurences)
exactOccurences - The exact amount of times this block should occur.
A negative value here will ignore this condition.public net.minecraft.block.Block getBlock()
public int getMaxOccurences()
public int getExactOccurences()
public boolean equals(java.lang.Object object)
equals in class java.lang.Object