mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-20 03:59:34 +00:00
autoplace first commit
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user