2024-02-05 13:21:10 +01:00
|
|
|
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
|
2024-10-03 19:10:03 +02:00
|
|
|
protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
|
2024-02-05 13:21:10 +01:00
|
|
|
if (!(entity instanceof ItemEntity)) {
|
|
|
|
super.onEntityCollision(state, world, pos, entity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|