37 lines
1,002 B
Java
37 lines
1,002 B
Java
package ru.betterend.blocks;
|
|
|
|
import java.util.List;
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
import net.minecraft.block.Blocks;
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.loot.context.LootContext;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.BlockView;
|
|
import net.minecraft.world.explosion.Explosion;
|
|
|
|
public class EternalRunedFlavolite extends RunedFlavolite {
|
|
|
|
@Override
|
|
public float calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) {
|
|
return 0.0F;
|
|
}
|
|
|
|
@Override
|
|
public float getBlastResistance() {
|
|
return Blocks.BEDROCK.getBlastResistance();
|
|
}
|
|
|
|
@Override
|
|
public boolean shouldDropItemsOnExplosion(Explosion explosion) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
|
return Lists.newArrayList();
|
|
}
|
|
}
|