mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
18 lines
467 B
Java
18 lines
467 B
Java
package com.hbm.blocks.generic;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.boss.EntityDragon;
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
public class BlockDragonProof extends BlockGeneric {
|
|
|
|
public BlockDragonProof(Material material) {
|
|
super(material);
|
|
}
|
|
|
|
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
|
|
return !(entity instanceof EntityDragon);
|
|
}
|
|
}
|