Package alexiil.mc.lib.attributes
Class SearchOption<T>
java.lang.Object
alexiil.mc.lib.attributes.SearchOption<T>
- Direct Known Subclasses:
SearchOptionDirectional,SearchOptionInVoxel
The base class for block search options. This only contains filtration for objects that are added to the attribute
list via a
Predicate. Instances can be constructed/obtained from SearchOptions, and all javadoc for
the various implementations is on those static factories.-
Method Summary
-
Method Details
-
matches
Checks to see if the given object matches thissearchMatcher. This method will normally be called by LBA automatically, so users are discouraged from calling this. -
getShape
public net.minecraft.util.shape.VoxelShape getShape()Returns theVoxelShapeto use for bounds checking. This defaults to a full block, but custom search options (likeSearchOptionInVoxel) override this.
-