mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-03 01:17:59 +01:00
22 lines
657 B
Java
22 lines
657 B
Java
package com.minelittlepony.unicopia.block;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
import net.minecraft.block.SoulFireBlock;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.ItemEntity;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.World;
|
|
|
|
public class SpectralFireBlock extends SoulFireBlock {
|
|
|
|
public SpectralFireBlock(Settings settings) {
|
|
super(settings);
|
|
}
|
|
|
|
@Override
|
|
protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
|
|
if (!(entity instanceof ItemEntity)) {
|
|
super.onEntityCollision(state, world, pos, entity);
|
|
}
|
|
}
|
|
}
|