Class PrefabUtil
java.lang.Object
com.hypixel.hytale.server.core.util.PrefabUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprivate static final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanPlacePrefab(IPrefabBuffer prefabBuffer, World world, Vector3i position, Rotation yaw, it.unimi.dsi.fastutil.ints.IntSet mask, Random random, boolean ignoreOrigin) static intstatic voidpaste(IPrefabBuffer buffer, World world, Vector3i position, Rotation yaw, boolean force, Random random, int setBlockSettings, boolean technicalPaste, boolean pasteAnchorAsBlock, boolean loadEntities, ComponentAccessor<EntityStore> componentAccessor) static voidpaste(IPrefabBuffer buffer, World world, Vector3i position, Rotation yaw, boolean force, Random random, int setBlockSettings, ComponentAccessor<EntityStore> componentAccessor) static voidpaste(IPrefabBuffer buffer, World world, Vector3i position, Rotation yaw, boolean force, Random random, ComponentAccessor<EntityStore> componentAccessor) static booleanprefabMatchesAtPosition(IPrefabBuffer prefabBuffer, World world, Vector3i position, Rotation yaw, Random random) static voidremove(IPrefabBuffer prefabBuffer, World world, Vector3i position, boolean force, Random random, int setBlockSettings) static voidremove(IPrefabBuffer prefabBuffer, World world, Vector3i position, boolean force, Random random, int setBlockSettings, double brokenParticlesRate) static voidremove(IPrefabBuffer prefabBuffer, World world, Vector3i position, Rotation prefabRotation, boolean force, Random random, int setBlockSettings, double brokenParticlesRate)
-
Field Details
-
EDITOR_BLOCK
- See Also:
-
EDITOR_BLOCK_PREFAB_AIR
- See Also:
-
EDITOR_BLOCK_PREFAB_ANCHOR
- See Also:
-
PREFAB_ID_SOURCE
-
-
Constructor Details
-
PrefabUtil
public PrefabUtil()
-
-
Method Details
-
prefabMatchesAtPosition
public static boolean prefabMatchesAtPosition(@Nonnull IPrefabBuffer prefabBuffer, World world, @Nonnull Vector3i position, @Nonnull Rotation yaw, Random random) -
canPlacePrefab
public static boolean canPlacePrefab(@Nonnull IPrefabBuffer prefabBuffer, World world, @Nonnull Vector3i position, @Nonnull Rotation yaw, @Nullable it.unimi.dsi.fastutil.ints.IntSet mask, Random random, boolean ignoreOrigin) -
paste
public static void paste(@Nonnull IPrefabBuffer buffer, @Nonnull World world, @Nonnull Vector3i position, @Nonnull Rotation yaw, boolean force, Random random, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
paste
public static void paste(@Nonnull IPrefabBuffer buffer, @Nonnull World world, @Nonnull Vector3i position, @Nonnull Rotation yaw, boolean force, Random random, int setBlockSettings, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getNextPrefabId
public static int getNextPrefabId() -
paste
public static void paste(@Nonnull IPrefabBuffer buffer, @Nonnull World world, @Nonnull Vector3i position, @Nonnull Rotation yaw, boolean force, Random random, int setBlockSettings, boolean technicalPaste, boolean pasteAnchorAsBlock, boolean loadEntities, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
remove
public static void remove(@Nonnull IPrefabBuffer prefabBuffer, @Nonnull World world, @Nonnull Vector3i position, boolean force, @Nonnull Random random, int setBlockSettings) -
remove
public static void remove(@Nonnull IPrefabBuffer prefabBuffer, @Nonnull World world, @Nonnull Vector3i position, boolean force, @Nonnull Random random, int setBlockSettings, double brokenParticlesRate) -
remove
public static void remove(@Nonnull IPrefabBuffer prefabBuffer, @Nonnull World world, @Nonnull Vector3i position, Rotation prefabRotation, boolean force, @Nonnull Random random, int setBlockSettings, double brokenParticlesRate)
-