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 |
getMaxOccurences() |
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 block should occur.
A negative value here will ignore this condition.public net.minecraft.block.Block getBlock()
public int getMaxOccurences()
public boolean equals(java.lang.Object object)
equals in class java.lang.Object