mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
26 lines
618 B
Java
26 lines
618 B
Java
package net.minecraftforge.common;
|
|||
|
|
|
||
|
|
import net.minecraft.block.Block;
|
||
|
|
|
||
|
|
public class BlockExtension
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* The Block that this extension object is associated with
|
||
|
|
*/
|
||
|
|
public final Block owner;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Determines wither or not a enderman can pickup and move this block.
|
||
|
|
*/
|
||
|
|
public boolean carriable = false;
|
||
|
|
|
||
|
|
public BlockExtension(Block owner)
|
||
|
|
{
|
||
|
|
if (MinecraftForge.getBlockExtension(owner, false) != null)
|
||
|
|
{
|
||
|
|
throw new IllegalArgumentException(owner + " already has an extension object allocated");
|
||
|
|
}
|
||
|
|
|
||
|
|
this.owner = owner;
|
||
|
|
}
|
||
|
|
}
|