24 lines
664 B
Java
24 lines
664 B
Java
|
package net.shadowfacts.phycon.api;
|
||
|
|
||
|
import net.minecraft.block.BlockState;
|
||
|
import net.minecraft.util.math.BlockPos;
|
||
|
import net.minecraft.util.math.Direction;
|
||
|
import net.minecraft.world.World;
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
import org.jetbrains.annotations.Nullable;
|
||
|
|
||
|
import java.util.Collection;
|
||
|
|
||
|
/**
|
||
|
* @author shadowfacts
|
||
|
*/
|
||
|
public interface NetworkComponentBlock {
|
||
|
|
||
|
@NotNull
|
||
|
Collection<Direction> getNetworkConnectedSides(@NotNull BlockState state, @NotNull World world, @NotNull BlockPos pos);
|
||
|
|
||
|
@Nullable
|
||
|
Interface getNetworkInterfaceForSide(@NotNull Direction side, @NotNull BlockState state, @NotNull World world, @NotNull BlockPos pos);
|
||
|
|
||
|
}
|