25 lines
717 B
Java
25 lines
717 B
Java
|
package net.minecraft.world.level.block;
|
||
|
|
||
|
import net.minecraft.world.level.BlockLayer;
|
||
|
import net.minecraft.world.phys.Vec3;
|
||
|
import net.minecraft.world.entity.Entity;
|
||
|
import net.minecraft.core.BlockPos;
|
||
|
import net.minecraft.world.level.Level;
|
||
|
import net.minecraft.world.level.block.state.BlockState;
|
||
|
|
||
|
public class WebBlock extends Block {
|
||
|
public WebBlock(final Properties c) {
|
||
|
super(c);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void entityInside(final BlockState bvt, final Level bhr, final BlockPos ew, final Entity aio) {
|
||
|
aio.makeStuckInBlock(bvt, new Vec3(0.25, 0.05000000074505806, 0.25));
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public BlockLayer getRenderLayer() {
|
||
|
return BlockLayer.CUTOUT;
|
||
|
}
|
||
|
}
|