use latest Netty and Guava

This commit is contained in:
Sen 2025-03-16 17:40:47 +01:00
parent 7f32e87ef4
commit 3af1b1f5b6
463 changed files with 611 additions and 68249 deletions

View file

@ -2,10 +2,11 @@ package game.pattern;
import java.util.Map;
import java.util.Map.Entry;
import java.util.function.Predicate;
import com.google.common.base.Predicate;
import com.google.common.collect.Maps;
import game.block.Block;
import game.collect.Maps;
import game.properties.IProperty;
import game.world.State;
@ -24,7 +25,7 @@ public class BlockStateHelper implements Predicate<State>
return new BlockStateHelper(blockIn);
}
public boolean test(State p_apply_1_)
public boolean apply(State p_apply_1_)
{
if (p_apply_1_ != null && p_apply_1_.getBlock().equals(this.block))
{
@ -32,7 +33,7 @@ public class BlockStateHelper implements Predicate<State>
{
Object object = p_apply_1_.getValue((IProperty)entry.getKey());
if (!((Predicate)entry.getValue()).test(object))
if (!((Predicate)entry.getValue()).apply(object))
{
return false;
}