Contents
- Description
- Nested Class Summary
- Field Summary
- Method Summary
- Field Details
- Method Details
- getAnchorX()
- getAnchorY()
- getAnchorZ()
- getMinX(PrefabRotation)
- getMinY()
- getMinZ(PrefabRotation)
- getMaxX(PrefabRotation)
- getMaxY()
- getMaxZ(PrefabRotation)
- getMinX()
- getMinZ()
- getMaxX()
- getMaxZ()
- getMinYAt(PrefabRotation, int, int)
- getMaxYAt(PrefabRotation, int, int)
- getColumnCount()
- getChildPrefabs()
- getMaximumExtend()
- forEach(IPrefabBuffer.ColumnPredicate, IPrefabBuffer.BlockConsumer, IPrefabBuffer.EntityConsumer, IPrefabBuffer.ChildConsumer, T)
- forEachEntity(IPrefabBuffer.EntityConsumer, T)
- forEachRaw(IPrefabBuffer.ColumnPredicate, IPrefabBuffer.RawBlockConsumer, IPrefabBuffer.FluidConsumer, IPrefabBuffer.EntityConsumer, T)
- forEachRaw(IPrefabBuffer.ColumnPredicate, IPrefabBuffer.RawBlockPredicate, IPrefabBuffer.FluidPredicate, IPrefabBuffer.EntityPredicate, T)
- compare(IPrefabBuffer.BlockComparingPredicate, T)
- compare(IPrefabBuffer.BlockComparingPrefabPredicate, T, IPrefabBuffer)
- getBlockId(int, int, int)
- getFiller(int, int, int)
- getRotationIndex(int, int, int)
- iterateAllColumns()
Interface IPrefabBuffer
- All Known Implementing Classes:
PrefabBuffer.PrefabBufferAccessor
public interface IPrefabBuffer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends PrefabBufferCall>
booleancompare(IPrefabBuffer.BlockComparingPredicate<T> blockComparingPredicate, T t) default <T extends PrefabBufferCall>
booleancompare(IPrefabBuffer.BlockComparingPrefabPredicate<T> blockComparingIterator, T t, IPrefabBuffer secondPrefab) <T extends PrefabBufferCall>
voidforEach(IPrefabBuffer.ColumnPredicate<T> columnPredicate, IPrefabBuffer.BlockConsumer<T> blockConsumer, IPrefabBuffer.EntityConsumer<T> entityConsumer, IPrefabBuffer.ChildConsumer<T> childConsumer, T t) This method is used for high performance, evaluated block chances usually during runtime when pasting prefabs.<T> voidforEachEntity(IPrefabBuffer.EntityConsumer<T> entityConsumer, T t) <T> voidforEachRaw(IPrefabBuffer.ColumnPredicate<T> columnPredicate, IPrefabBuffer.RawBlockConsumer<T> blockConsumer, IPrefabBuffer.FluidConsumer<T> fluidConsumer, IPrefabBuffer.EntityConsumer<T> entityConsumer, T t) This method is usually used for serialization.<T> booleanforEachRaw(IPrefabBuffer.ColumnPredicate<T> columnPredicate, IPrefabBuffer.RawBlockPredicate<T> blockPredicate, IPrefabBuffer.FluidPredicate<T> fluidPredicate, IPrefabBuffer.EntityPredicate<T> entityPredicate, T t) This method reports all contents of the prefab buffer, but it also allows to stop iteration after every block / entity.intintintintgetBlockId(int x, int y, int z) intintgetFiller(int x, int y, int z) default intdefault intgetMaxX()intgetMaxX(PrefabRotation rotation) intgetMaxY()intgetMaxYAt(PrefabRotation rotation, int x, int z) default intgetMaxZ()intgetMaxZ(PrefabRotation rotation) default intgetMinX()intgetMinX(PrefabRotation rotation) intgetMinY()intgetMinYAt(PrefabRotation rotation, int x, int z) default intgetMinZ()intgetMinZ(PrefabRotation rotation) intgetRotationIndex(int x, int y, int z) static <T> IPrefabBuffer.ColumnPredicate<T>
-
Field Details
-
ALL_COLUMNS
-
-
Method Details
-
getAnchorX
int getAnchorX() -
getAnchorY
int getAnchorY() -
getAnchorZ
int getAnchorZ() -
getMinX
-
getMinY
int getMinY() -
getMinZ
-
getMaxX
-
getMaxY
int getMaxY() -
getMaxZ
-
getMinX
default int getMinX() -
getMinZ
default int getMinZ() -
getMaxX
default int getMaxX() -
getMaxZ
default int getMaxZ() -
getMinYAt
-
getMaxYAt
-
getColumnCount
int getColumnCount() -
getChildPrefabs
-
getMaximumExtend
default int getMaximumExtend() -
forEach
<T extends PrefabBufferCall> void forEach(@Nonnull IPrefabBuffer.ColumnPredicate<T> columnPredicate, @Nonnull IPrefabBuffer.BlockConsumer<T> blockConsumer, @Nullable IPrefabBuffer.EntityConsumer<T> entityConsumer, @Nullable IPrefabBuffer.ChildConsumer<T> childConsumer, @Nonnull T t) This method is used for high performance, evaluated block chances usually during runtime when pasting prefabs.- Type Parameters:
T- Type of Meta Object- Parameters:
columnPredicate- Reports each columnblockConsumer- Reports all blocksentityConsumer- Reprots all entity wrapperst- Meta Object
-
forEachEntity
-
forEachRaw
<T> void forEachRaw(@Nonnull IPrefabBuffer.ColumnPredicate<T> columnPredicate, @Nonnull IPrefabBuffer.RawBlockConsumer<T> blockConsumer, @Nonnull IPrefabBuffer.FluidConsumer<T> fluidConsumer, @Nullable IPrefabBuffer.EntityConsumer<T> entityConsumer, @Nullable T t) This method is usually used for serialization. It fires all data, even if empty.- Type Parameters:
T- Type of Meta Object- Parameters:
columnPredicate- Reports each columnblockConsumer- Reports all blocksentityConsumer- Reprots all entity wrapperst- Meta Object
-
forEachRaw
<T> boolean forEachRaw(@Nonnull IPrefabBuffer.ColumnPredicate<T> columnPredicate, @Nonnull IPrefabBuffer.RawBlockPredicate<T> blockPredicate, @Nonnull IPrefabBuffer.FluidPredicate<T> fluidPredicate, @Nullable IPrefabBuffer.EntityPredicate<T> entityPredicate, @Nullable T t) This method reports all contents of the prefab buffer, but it also allows to stop iteration after every block / entity. It fires all data, even if empty.- Type Parameters:
T- Type of Meta Object- Parameters:
columnPredicate- Reports each columnblockPredicate- Reports all blocksentityPredicate- Reprots all entity wrapperst- Meta Object
-
compare
default <T extends PrefabBufferCall> boolean compare(@Nonnull IPrefabBuffer.BlockComparingPredicate<T> blockComparingPredicate, @Nonnull T t) -
compare
default <T extends PrefabBufferCall> boolean compare(@Nonnull IPrefabBuffer.BlockComparingPrefabPredicate<T> blockComparingIterator, @Nonnull T t, @Nonnull IPrefabBuffer secondPrefab) -
getBlockId
int getBlockId(int x, int y, int z) -
getFiller
int getFiller(int x, int y, int z) -
getRotationIndex
int getRotationIndex(int x, int y, int z) -
iterateAllColumns
-