+ fan_block
+ redstone_powered_fan_block
This commit is contained in:
@@ -14,6 +14,7 @@ import java.util.Deque;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
|
||||||
public class RedstonePowerdFanBlock extends Block {
|
public class RedstonePowerdFanBlock extends Block {
|
||||||
|
|
||||||
public static final BooleanProperty ON = BooleanProperty.create("on");
|
public static final BooleanProperty ON = BooleanProperty.create("on");
|
||||||
@@ -50,6 +51,7 @@ public class RedstonePowerdFanBlock extends Block {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void toggleNetwork(Level level, BlockPos origin, boolean newState) {
|
private void toggleNetwork(Level level, BlockPos origin, boolean newState) {
|
||||||
Set<BlockPos> visited = new HashSet<>();
|
Set<BlockPos> visited = new HashSet<>();
|
||||||
Deque<BlockPos> queue = new ArrayDeque<>();
|
Deque<BlockPos> queue = new ArrayDeque<>();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"category": "building",
|
"category": "building",
|
||||||
"ingredients": [
|
"ingredients": [
|
||||||
{
|
{
|
||||||
"item": "ornamentum:fan_block"
|
"item": "minecraft:redstone_torch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"item": "ornamentum:fan_block"
|
"item": "ornamentum:fan_block"
|
||||||
|
|||||||
Reference in New Issue
Block a user