Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Interface PlayerAccessor<P extends Player<P,?>>
- Type Parameters:
P
- the generic type
- All Known Subinterfaces:
PlayerAccessor.PlayerProperty<P>
,PlayerAddedEvent<P,S>
,PlayerRemovedEvent<P,S>
- All Known Implementing Classes:
AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent
,PlayerAddedEventImpl
,PlayerRemovedEventImpl
public interface PlayerAccessor<P extends Player<P,?>>
Provides an accessor for a player property.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PlayerAccessor.PlayerBuilder<P extends Player<P,?>,B extends PlayerAccessor.PlayerBuilder<P,B>>
Provides a builder method for a player property returning the builder for applying multiple build operations.static interface
PlayerAccessor.PlayerMutator<P extends Player<P,?>>
Provides a mutator for a player property.static interface
PlayerAccessor.PlayerProperty<P extends Player<P,?>>
Provides a player property. -
Method Summary
-
Method Details
-
getPlayer
P getPlayer()Retrieves the player from the player property.- Returns:
- The player stored by the player property.
-