Class BlockRegionViewManager<Type extends BlockRegionView<Type>>
java.lang.Object
com.hypixel.hytale.server.npc.blackboard.view.BlockRegionViewManager<Type>
- All Implemented Interfaces:
IBlackboardViewManager<Type>
- Direct Known Subclasses:
BlockTypeViewManager,ResourceViewManager
public abstract class BlockRegionViewManager<Type extends BlockRegionView<Type>>
extends Object
implements IBlackboardViewManager<Type>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected it.unimi.dsi.fastutil.longs.LongArrayFIFOQueueprotected com.hypixel.fastutil.longs.Long2ObjectConcurrentHashMap<Type> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidclear()protected abstract TypecreateView(long var1, Blackboard var3) voidforEachView(Consumer<Type> consumer) get(int chunkX, int chunkZ, Blackboard blackboard) get(long index, Blackboard blackboard) get(Ref<EntityStore> ref, Blackboard blackboard, ComponentAccessor<EntityStore> componentAccessor) get(Vector3d position, Blackboard blackboard) getIfExists(long index) voidprotected abstract booleanshouldCleanup(Type var1)
-
Field Details
-
views
@Nonnull protected com.hypixel.fastutil.longs.Long2ObjectConcurrentHashMap<Type extends BlockRegionView<Type>> views -
removalQueue
@Nonnull protected it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue removalQueue
-
-
Constructor Details
-
BlockRegionViewManager
public BlockRegionViewManager()
-
-
Method Details
-
get
public Type get(@Nonnull Ref<EntityStore> ref, Blackboard blackboard, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
getin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
get
- Specified by:
getin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
get
- Specified by:
getin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
get
- Specified by:
getin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
createView
-
getIfExists
- Specified by:
getIfExistsin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
shouldCleanup
-
onWorldRemoved
public void onWorldRemoved()- Specified by:
onWorldRemovedin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
forEachView
- Specified by:
forEachViewin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-
clear
public void clear()- Specified by:
clearin interfaceIBlackboardViewManager<Type extends BlockRegionView<Type>>
-