Files
fabric-carpet/src/main/java/carpet/fakes/BlockBehaviourInterface.java
T
2022-09-03 22:49:01 +02:00

21 lines
659 B
Java

package carpet.fakes;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
public interface BlockBehaviourInterface {
/**
* @return whether this block is sticky in any way when moved by pistons
*/
public boolean isSticky(BlockState state);
/**
* @return whether the neighboring block is pulled along if this block is moved by pistons
*/
public boolean isStickyToNeighbor(Level level, BlockPos pos, BlockState state, BlockPos neighborPos, BlockState neighborState, Direction dir, Direction moveDir);
}