Interface MinecartComparatorLogic<T extends AbstractMinecartEntity>

Type Parameters:
T - the handled minecart type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MinecartComparatorLogic<T extends AbstractMinecartEntity>
Provides custom comparator output for minecarts resting on detector rails.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getComparatorValue(T minecart, BlockState state, BlockPos pos)
    Compute the comparator output of a detector rail when a minecart is resting on top of it.