uploaded src

This commit is contained in:
makeo committed 2015-10-19 20:52:53 +02:00
1 parent de120fbdea
commit 425cc32981
125 files changed
+9746

No files matched your search

@@ -0,0 +1,50 @@
package makeo.gadomancy.api;
import net.minecraft.block.Block;
import net.minecraft.world.World;
/**
* This class is part of the Gadomancy Mod
* Gadomancy is Open Source and distributed under the
* GNU LESSER GENERAL PUBLIC LICENSE
* for more read the LICENSE file
*
* Created by makeo @ 11.10.2015 12:09
*/
public abstract class ClickBehavior {
protected World world;
protected Block block;
protected int x, y, z, metadata;
protected boolean hasVisCost;
public ClickBehavior(boolean hasVisCost) {
this.hasVisCost = hasVisCost;
}
public ClickBehavior() {
this(false);
}
@Deprecated
public void init(World world, Block block, int x, int y, int z, int metadata) {
this.world = world;
this.block = block;
this.x = x;
this.y = y;
this.z = z;
this.metadata = metadata;
}
public abstract boolean isValidForBlock();
public boolean hasVisCost() {
return hasVisCost;
}
public int getComparatorOutput() {
return 0;
}
public void addInstability(int instability) { }
}