Skip to content

Commit

Permalink
update n2d package
Browse files Browse the repository at this point in the history
  • Loading branch information
dags- committed Jun 11, 2020
1 parent 5411388 commit 96704f5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.terraforged.fm.template.processor;

import net.minecraft.block.BlockState;

import java.util.Map;

public class BlockReplacer implements StateProcessor {

private final Map<BlockState, BlockState> states;

public BlockReplacer(Map<BlockState, BlockState> states) {
this.states = states;
}

@Override
public BlockState process(BlockState state) {
return states.getOrDefault(state, state);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.terraforged.fm.template.processor;

import net.minecraft.block.BlockState;

public interface StateProcessor {

BlockState process(BlockState state);
}

0 comments on commit 96704f5

Please sign in to comment.