Package me.desht.pneumaticcraft.api.item
Interface IMagnetSuppressor
- All Known Implementing Classes:
SolegnoliaHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implement this and register it via
PneumaticRegistry.getItemRegistry().registerMagnetSuppressor() -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldSuppressMagnet(net.minecraft.world.entity.Entity e) Check if there is a magnet-suppressor near the given entity (which is usually, but not necessarily, an EntityItem).
-
Method Details
-
shouldSuppressMagnet
boolean shouldSuppressMagnet(net.minecraft.world.entity.Entity e) Check if there is a magnet-suppressor near the given entity (which is usually, but not necessarily, an EntityItem).- Parameters:
e- the entity to check- Returns:
- true if any magnet effects should be suppressed, false otherwise
-