Class CorporeaIndexBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
CorporeaRequestor

public class CorporeaIndexBlockEntity extends BaseCorporeaBlockEntity implements CorporeaRequestor
  • Field Details

    • RADIUS

      public static final double RADIUS
      See Also:
    • MAX_REQUEST

      public static final int MAX_REQUEST
      See Also:
    • ticksWithCloseby

      public int ticksWithCloseby
    • closeby

      public float closeby
    • hasCloseby

      public boolean hasCloseby
  • Constructor Details

    • CorporeaIndexBlockEntity

      public CorporeaIndexBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • commonTick

      public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, CorporeaIndexBlockEntity self)
    • getNearbyValidIndexes

      public static List<CorporeaIndexBlockEntity> getNearbyValidIndexes(net.minecraft.world.entity.player.Player player)
    • setRemoved

      public void setRemoved()
      Overrides:
      setRemoved in class net.minecraft.world.level.block.entity.BlockEntity
    • doCorporeaRequest

      public void doCorporeaRequest(CorporeaRequestMatcher request, int count, CorporeaSpark spark, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity)
      Description copied from interface: CorporeaRequestor
      Executes the passed in request.
      Specified by:
      doCorporeaRequest in interface CorporeaRequestor
    • addPattern

      public static void addPattern(String pattern, CorporeaIndexBlockEntity.IRegexStacker stacker)
    • i

      public static int i(Matcher m, int g)
    • clearIndexCache

      public static void clearIndexCache()
    • performPlayerRequest

      public void performPlayerRequest(net.minecraft.server.level.ServerPlayer player, CorporeaRequestMatcher request, int count)
    • onChatMessage

      public static void onChatMessage(net.minecraft.server.level.ServerPlayer player, String message)