28 lines
939 B
Java
28 lines
939 B
Java
package net.minecraft.world.level.block;
|
|
|
|
import com.mojang.serialization.MapCodec;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.InteractionResult;
|
|
import net.minecraft.world.entity.player.Player;
|
|
import net.minecraft.world.level.Level;
|
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
import net.minecraft.world.phys.BlockHitResult;
|
|
|
|
public class FletchingTableBlock extends CraftingTableBlock {
|
|
public static final MapCodec<FletchingTableBlock> CODEC = simpleCodec(FletchingTableBlock::new);
|
|
|
|
@Override
|
|
public MapCodec<FletchingTableBlock> codec() {
|
|
return CODEC;
|
|
}
|
|
|
|
protected FletchingTableBlock(BlockBehaviour.Properties properties) {
|
|
super(properties);
|
|
}
|
|
|
|
@Override
|
|
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
|
|
return InteractionResult.PASS;
|
|
}
|
|
}
|