2025-11-24 22:52:51 +03:00

40 lines
1.0 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.serialization.MapCodec
*/
package net.minecraft.world.level.block;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
public class PoweredBlock
extends Block {
public static final MapCodec<PoweredBlock> CODEC = PoweredBlock.simpleCodec(PoweredBlock::new);
public MapCodec<PoweredBlock> codec() {
return CODEC;
}
public PoweredBlock(BlockBehaviour.Properties properties) {
super(properties);
}
@Override
protected boolean isSignalSource(BlockState state) {
return true;
}
@Override
protected int getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction) {
return 15;
}
}