public abstract class MarkerSubCache<C extends MarkerConnection<C>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
cacheId |
static boolean |
DEBUG_FULL |
int |
dimensionId |
boolean |
isServer |
Constructor and Description |
---|
MarkerSubCache(net.minecraft.world.World world,
int cacheId) |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(C connection) |
abstract boolean |
canConnect(net.minecraft.util.math.BlockPos a,
net.minecraft.util.math.BlockPos b)
Checks if
tryConnect(BlockPos, BlockPos) would succeed at this time. |
void |
destroyConnection(C connection) |
com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> |
getAllMarkers() |
C |
getConnection(net.minecraft.util.math.BlockPos pos) |
com.google.common.collect.ImmutableList<C> |
getConnections() |
TileMarker<C> |
getMarker(net.minecraft.util.math.BlockPos pos) |
abstract LaserData_BC8.LaserType |
getPossibleLaserType() |
abstract com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> |
getValidConnections(net.minecraft.util.math.BlockPos from) |
protected abstract boolean |
handleMessage(MessageMarker message) |
void |
handleMessageMain(MessageMarker message) |
boolean |
hasLoadedOrUnloadedMarker(net.minecraft.util.math.BlockPos pos) |
void |
loadMarker(net.minecraft.util.math.BlockPos pos,
TileMarker<C> marker) |
void |
onPlayerJoinWorld(net.minecraft.entity.player.EntityPlayerMP player) |
void |
refreshConnection(C connection) |
void |
removeMarker(net.minecraft.util.math.BlockPos pos) |
abstract boolean |
tryConnect(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
void |
unloadMarker(net.minecraft.util.math.BlockPos pos) |
public static final boolean DEBUG_FULL
public final int cacheId
public final int dimensionId
public final boolean isServer
public MarkerSubCache(net.minecraft.world.World world, int cacheId)
public void onPlayerJoinWorld(net.minecraft.entity.player.EntityPlayerMP player)
public boolean hasLoadedOrUnloadedMarker(net.minecraft.util.math.BlockPos pos)
@Nullable public TileMarker<C> getMarker(net.minecraft.util.math.BlockPos pos)
public void loadMarker(net.minecraft.util.math.BlockPos pos, @Nullable TileMarker<C> marker)
public void unloadMarker(net.minecraft.util.math.BlockPos pos)
public void removeMarker(net.minecraft.util.math.BlockPos pos)
public com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> getAllMarkers()
@Nullable public C getConnection(net.minecraft.util.math.BlockPos pos)
public void destroyConnection(@Nullable C connection)
public void addConnection(@Nonnull C connection)
public void refreshConnection(@Nonnull C connection)
public com.google.common.collect.ImmutableList<C> getConnections()
public abstract boolean tryConnect(net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos to)
public abstract boolean canConnect(net.minecraft.util.math.BlockPos a, net.minecraft.util.math.BlockPos b)
tryConnect(BlockPos, BlockPos)
would succeed at this time.public abstract com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> getValidConnections(net.minecraft.util.math.BlockPos from)
public abstract LaserData_BC8.LaserType getPossibleLaserType()
public final void handleMessageMain(MessageMarker message)
protected abstract boolean handleMessage(MessageMarker message)