See https://github.com/comp500/fabric-serverside-mods for the latest mod list!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-queries | |
log-facility=/var/log/dnsmasq.log | |
no-resolv | |
server=8.8.4.4 | |
server=8.8.8.8 | |
address=/router/10.1.1.1 | |
address=/server/10.1.1.2 |
Say you wanted to emit an explosion particle whenever your block is destroyed. Emitting particles requires access to the ParticleManager
, which only exists on the MinecraftClient
instance. Let's try doing that:
public class MyBlock extends Block {
@Override
public void onBlockRemoved(BlockState before, World world, BlockPos pos, BlockState after, boolean bool) {
^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$
- Semantic versioning http://semver.org/
- Source of the regex npm/node-semver#32
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.TargetApi; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.res.Resources; | |
import android.graphics.Canvas; | |
import android.media.AudioManager; | |
import android.media.MediaFormat; | |
import android.media.MediaPlayer; | |
import android.net.Uri; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getBaseUrl(HttpServletRequest request) { | |
String baseUrl = request.getRequestURL().substring(0, request.getRequestURL().length() - request.getRequestURI().length()) + request.getContextPath(); | |
return baseUrl; | |
} |
NewerOlder