forked from FabricMC/fabric
i am good at this modding thing
This commit is contained in:
parent
7699ef9dc5
commit
9d0f790bfc
2 changed files with 1 additions and 6 deletions
|
@ -33,11 +33,6 @@ import java.util.List;
|
||||||
public class FabricAPI implements ModInitializer {
|
public class FabricAPI implements ModInitializer {
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
List<String> ss = null;
|
|
||||||
for (String s : ss) {
|
|
||||||
s.length();
|
|
||||||
}
|
|
||||||
|
|
||||||
PlayerInteractionEvent.BREAK_BLOCK.register((player, world, hand, pos, facing) -> {
|
PlayerInteractionEvent.BREAK_BLOCK.register((player, world, hand, pos, facing) -> {
|
||||||
BlockState state = world.getBlockState(pos);
|
BlockState state = world.getBlockState(pos);
|
||||||
if (state instanceof BreakInteractable) {
|
if (state instanceof BreakInteractable) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
public class BlockEntityRendererRegistry {
|
public class BlockEntityRendererRegistry {
|
||||||
public static final BlockEntityRendererRegistry INSTANCE = new BlockEntityRendererRegistry();
|
public static final BlockEntityRendererRegistry INSTANCE = new BlockEntityRendererRegistry();
|
||||||
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderers;
|
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderers = null;
|
||||||
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderersTmp = new HashMap<>();
|
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderersTmp = new HashMap<>();
|
||||||
|
|
||||||
private BlockEntityRendererRegistry() {
|
private BlockEntityRendererRegistry() {
|
||||||
|
|
Loading…
Reference in a new issue