Class PlayerContext
- java.lang.Object
-
- net.minecraftforge.server.permission.context.Context
-
- net.minecraftforge.server.permission.context.PlayerContext
-
- All Implemented Interfaces:
IContext
- Direct Known Subclasses:
AreaContext
,BlockPosContext
,TargetContext
public class PlayerContext extends Context
-
-
Field Summary
Fields Modifier and Type Field Description private PlayerEntity
player
-
Constructor Summary
Constructors Constructor Description PlayerContext(PlayerEntity ep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayerEntity
getPlayer()
World
getWorld()
World from where permission is requested.
-
-
-
Field Detail
-
player
private final PlayerEntity player
-
-
Constructor Detail
-
PlayerContext
public PlayerContext(PlayerEntity ep)
-
-
Method Detail
-
getWorld
public World getWorld()
Description copied from interface:IContext
World from where permission is requested. Can be null
-
getPlayer
public PlayerEntity getPlayer()
-
-