autoplace first commit

This commit is contained in:
Glease committed 2022-07-09 02:39:28 +08:00
1 parent 4c03406640
commit 7c3491d543
29 files changed
+1104 -35

No files matched your search

@@ -3,6 +3,7 @@ package com.gtnewhorizon.structurelib.structure;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.UUID;
import java.util.function.Function;
class LazyStructureElement<T> implements IStructureElementDeferred<T> {
@@ -35,4 +36,9 @@ class LazyStructureElement<T> implements IStructureElementDeferred<T> {
public boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger) {
return get(t).spawnHint(t, world, x, y, z, trigger);
}
@Override
public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger, IItemSource s, UUID actorProfile) {
return get(t).survivalPlaceBlock(t, world, x, y, z, trigger, s, actorProfile);
}
}