mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-31 04:46:37 +00:00
Merge remote-tracking branch 'upstream/dev' into dev
# Conflicts: # gradle.properties
This commit is contained in:
@@ -178,6 +178,11 @@ public abstract class BlockBehavior {
|
||||
public void spawnAfterBreak(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
|
||||
}
|
||||
|
||||
// Level level, BlockPos pos, BlockState state, Entity entity
|
||||
public void stepOn(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
|
||||
superMethod.call();
|
||||
}
|
||||
|
||||
public ImmutableBlockState updateStateForPlacement(BlockPlaceContext context, ImmutableBlockState state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ public interface NetworkManager extends Manageable {
|
||||
|
||||
Channel getChannel(Player player);
|
||||
|
||||
int remapBlockState(int stateId, boolean enableMod);
|
||||
|
||||
Player[] onlineUsers();
|
||||
|
||||
default void sendPacket(@NotNull NetWorkUser player, Object packet) {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package net.momirealms.craftengine.core.plugin.network;
|
||||
|
||||
public enum PacketFlow {
|
||||
SERVERBOUND,
|
||||
CLIENTBOUND;
|
||||
}
|
||||
Reference in New Issue
Block a user