Class TargetContext
- java.lang.Object
-
- net.minecraftforge.server.permission.context.Context
-
- net.minecraftforge.server.permission.context.PlayerContext
-
- net.minecraftforge.server.permission.context.TargetContext
-
- All Implemented Interfaces:
IContext
public class TargetContext extends PlayerContext
-
-
Constructor Summary
Constructors Constructor Description TargetContext(PlayerEntity ep, Entity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
covers(ContextKey<?> key)
<T> T
get(ContextKey<T> key)
-
Methods inherited from class net.minecraftforge.server.permission.context.PlayerContext
getPlayer, getWorld
-
-
-
-
Field Detail
-
target
private final Entity target
-
-
Constructor Detail
-
TargetContext
public TargetContext(PlayerEntity ep, @Nullable Entity entity)
-
-
Method Detail
-
get
@Nullable public <T> T get(ContextKey<T> key)
-
covers
protected boolean covers(ContextKey<?> key)
-
-