Skip to content

Commit

Permalink
Add IFunctionalBlock for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Zombii committed Mar 31, 2024
1 parent ec35d14 commit 1122364
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/dev/crmodders/flux/api/block/IFunctionalBlock.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package dev.crmodders.flux.api.block;

import finalforeach.cosmicreach.blocks.BlockPosition;
import finalforeach.cosmicreach.blocks.BlockState;
import finalforeach.cosmicreach.entities.Player;
import finalforeach.cosmicreach.world.Zone;

public interface IFunctionalBlock extends IModBlock {

default void onInteract(Zone zone, Player player, BlockState blockState, BlockPosition position) {}
default void onPlace(Zone zone, Player player, BlockState blockState, BlockPosition position) {}
default void onBreak(Zone zone, Player player, BlockState blockState, BlockPosition position) {}

}

0 comments on commit 1122364

Please sign in to comment.