Changes to sopport proper Block-Tags for Workstations (#39)
This commit is contained in:
parent
29cf285f09
commit
42fa776320
10 changed files with 75 additions and 6 deletions
|
@ -16,6 +16,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|||
public class PoiTypeMixin implements PoiTypeExtension {
|
||||
private TagKey<Block> bcl_tag = null;
|
||||
|
||||
|
||||
@Inject(method = "is", cancellable = true, at = @At("HEAD"))
|
||||
void bcl_is(BlockState blockState, CallbackInfoReturnable<Boolean> cir) {
|
||||
if (bcl_tag != null && blockState.is(bcl_tag)) {
|
||||
|
@ -26,4 +27,9 @@ public class PoiTypeMixin implements PoiTypeExtension {
|
|||
public void bcl_setTag(TagKey<Block> tag) {
|
||||
bcl_tag = tag;
|
||||
}
|
||||
|
||||
public TagKey<Block> bcl_getTag() {
|
||||
return bcl_tag;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue