Interface ChangeBlockEvent.Pre

    • Method Detail

      • locations

        java.util.List<ServerLocation> locations()
        Represents a list of one or more ServerLocation's where BlockState changes can occur.

        Canceling this event will prevent block logic from running and also stop BlockSnapshot's from being generated.

        Note: This event is not intended to always be fired before changing a BlockState but rather it is primarily used to prevent one or more BlockState's from being changed.

        Returns:
        The immutable list of one or more locations that can change