Class BlockPosContext
- java.lang.Object
-
- net.minecraftforge.server.permission.context.Context
-
- net.minecraftforge.server.permission.context.PlayerContext
-
- net.minecraftforge.server.permission.context.BlockPosContext
-
- All Implemented Interfaces:
IContext
public class BlockPosContext extends PlayerContext
-
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
blockPos
private BlockState
blockState
private Direction
facing
-
Constructor Summary
Constructors Constructor Description BlockPosContext(PlayerEntity ep, BlockPos pos, BlockState state, Direction f)
BlockPosContext(PlayerEntity ep, ChunkPos pos)
-
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
-
blockPos
private final BlockPos blockPos
-
blockState
private BlockState blockState
-
facing
private Direction facing
-
-
Constructor Detail
-
BlockPosContext
public BlockPosContext(PlayerEntity ep, BlockPos pos, @Nullable BlockState state, @Nullable Direction f)
-
BlockPosContext
public BlockPosContext(PlayerEntity ep, ChunkPos pos)
-
-
Method Detail
-
get
@Nullable public <T> T get(ContextKey<T> key)
-
covers
protected boolean covers(ContextKey<?> key)
-
-