public class VolatileWorldHandler_v1_16_R2 extends Object implements VolatileWorldHandler
Modifier and Type | Field and Description |
---|---|
Thread |
resetServerThread |
Constructor and Description |
---|
VolatileWorldHandler_v1_16_R2(VolatileCodeHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
changeWorldServerThread(org.bukkit.World world) |
void |
doBlockTossEffect(AbstractLocation target,
org.bukkit.Material material,
AbstractVector velocity,
int duration,
boolean hideSourceBlock) |
float |
getDifficultyScale(AbstractLocation location) |
int |
getEntitiesInChunk(AbstractWorld world,
int x,
int z) |
Collection<AbstractEntity> |
getEntitiesNearLocation(AbstractLocation location,
double radius,
Predicate<AbstractEntity> predicate) |
boolean |
isChunkLoaded(AbstractWorld world,
int x,
int z) |
void |
playSoundAtLocation(AbstractLocation location,
String sound,
float volume,
float pitch,
double radius) |
org.bukkit.util.RayTraceResult |
rayTrace(org.bukkit.Location start,
org.bukkit.util.Vector direction,
double maxDistance,
double raySize,
Predicate<org.bukkit.entity.Entity> entityFilter,
Predicate<org.bukkit.Material> blockFilter) |
org.bukkit.util.RayTraceResult |
rayTraceEntities(org.bukkit.Location start,
org.bukkit.util.Vector direction,
double maxDistance,
double raySize,
Predicate<org.bukkit.entity.Entity> filter) |
void |
registerWorldAccess(org.bukkit.World world) |
void |
restoreWorldServerThread(org.bukkit.World world) |
void |
unregisterWorldAccess(org.bukkit.World world) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntitiesNearLocation, rayTrace
public Thread resetServerThread
public VolatileWorldHandler_v1_16_R2(VolatileCodeHandler handler)
public void registerWorldAccess(org.bukkit.World world)
registerWorldAccess
in interface VolatileWorldHandler
public void unregisterWorldAccess(org.bukkit.World world)
unregisterWorldAccess
in interface VolatileWorldHandler
public void playSoundAtLocation(AbstractLocation location, String sound, float volume, float pitch, double radius)
playSoundAtLocation
in interface VolatileWorldHandler
public boolean isChunkLoaded(AbstractWorld world, int x, int z)
isChunkLoaded
in interface VolatileWorldHandler
public int getEntitiesInChunk(AbstractWorld world, int x, int z)
getEntitiesInChunk
in interface VolatileWorldHandler
public void doBlockTossEffect(AbstractLocation target, org.bukkit.Material material, AbstractVector velocity, int duration, boolean hideSourceBlock)
doBlockTossEffect
in interface VolatileWorldHandler
public float getDifficultyScale(AbstractLocation location)
getDifficultyScale
in interface VolatileWorldHandler
public Collection<AbstractEntity> getEntitiesNearLocation(AbstractLocation location, double radius, Predicate<AbstractEntity> predicate)
getEntitiesNearLocation
in interface VolatileWorldHandler
public org.bukkit.util.RayTraceResult rayTraceEntities(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize, Predicate<org.bukkit.entity.Entity> filter)
public org.bukkit.util.RayTraceResult rayTrace(org.bukkit.Location start, org.bukkit.util.Vector direction, double maxDistance, double raySize, Predicate<org.bukkit.entity.Entity> entityFilter, Predicate<org.bukkit.Material> blockFilter)
rayTrace
in interface VolatileWorldHandler
public void changeWorldServerThread(org.bukkit.World world)
changeWorldServerThread
in interface VolatileWorldHandler
public void restoreWorldServerThread(org.bukkit.World world)
restoreWorldServerThread
in interface VolatileWorldHandler
Copyright © 2020. All rights reserved.