net.minecraft.server.BlockPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
import com.google.common.base.Predicate;
public class BlockPredicate implements Predicate {
private final Block a;
private BlockPredicate(Block block) {
this.a = block;
}
public static BlockPredicate a(Block block) {
return new BlockPredicate(block);
}
public boolean a(IBlockData iblockdata) {
return iblockdata != null && iblockdata.getBlock() == this.a;
}
public boolean apply(IBlockData object) {
return this.a(object);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy